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) => { 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",
}, },

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