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) => {
|
||||
fetch(url, {
|
||||
method: "GET",
|
||||
// mode: 'no-cors',
|
||||
headers: {
|
||||
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"
|
||||
);
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user