D
Size: a a a
D
Я

DD
DD
Я

Я
D
V

ЯП
Access to XMLHttpRequest at 'https://<url>/socket.io/?EIO=3&transport=polling&t=NauPLsl' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
V
ЯП
if (config.CORS) {
const corsOptions = {
origin: (origin, callback) => {
callback(null, true);
},
credentials: true,
methods: ['GET', 'PUT', 'POST', 'OPTIONS', 'DELETE', 'PATCH'],
headers: ['x-user', 'X-Signature', 'accept', 'content-type', 'authorization'],
};
app.use(cors(corsOptions));
}V
ЯП
ЯП
V
ЯП
V
ЯП
V
ЯП
Access to XMLHttpRequest at 'https://<url>/socket.io/?EIO=4&transport=polling&t=NauW8g-' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.