revert FRONT_URL

This commit is contained in:
Hanusiak Piotr 2022-02-22 14:44:54 +01:00 committed by David Négrier
parent 3b4f06d659
commit 52e15eccfa
2 changed files with 2 additions and 1 deletions

View File

@ -53,6 +53,7 @@ export class PlayerTextures {
return new Promise<boolean>((resolve, reject) => {
fetch(url, {
method: "GET",
// mode: 'no-cors',
headers: {
Host: "pusher.workadventure.localhost",
},

View File

@ -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"
);
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) {
next();