revert FRONT_URL
This commit is contained in:
parent
3b4f06d659
commit
52e15eccfa
@ -53,6 +53,7 @@ export class PlayerTextures {
|
|||||||
return new Promise<boolean>((resolve, reject) => {
|
return new Promise<boolean>((resolve, reject) => {
|
||||||
fetch(url, {
|
fetch(url, {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
|
// mode: 'no-cors',
|
||||||
headers: {
|
headers: {
|
||||||
Host: "pusher.workadventure.localhost",
|
Host: "pusher.workadventure.localhost",
|
||||||
},
|
},
|
||||||
|
@ -9,7 +9,7 @@ export function cors(req: Request, res: Response, next?: MiddlewareNext): Middle
|
|||||||
"Origin, X-Requested-With, Content-Type, Accept, Authorization, Pragma, Cache-Control"
|
"Origin, X-Requested-With, Content-Type, Accept, Authorization, Pragma, Cache-Control"
|
||||||
);
|
);
|
||||||
res.setHeader("access-control-allow-methods", "GET, POST, OPTIONS, PUT, PATCH, DELETE");
|
res.setHeader("access-control-allow-methods", "GET, POST, OPTIONS, PUT, PATCH, DELETE");
|
||||||
res.setHeader("access-control-allow-origin", "*");
|
res.setHeader("access-control-allow-origin", FRONT_URL);
|
||||||
|
|
||||||
if (next) {
|
if (next) {
|
||||||
next();
|
next();
|
||||||
|
Loading…
Reference in New Issue
Block a user