Attempt #1 to fix CORS issue and docker build.
This commit is contained in:
@@ -30,8 +30,6 @@ http {
|
|||||||
|
|
||||||
# CORS headers
|
# CORS headers
|
||||||
add_header 'Access-Control-Allow-Origin' '*';
|
add_header 'Access-Control-Allow-Origin' '*';
|
||||||
add_header 'Access-Control-Allow-Methods' 'GET, POST';
|
|
||||||
add_header 'Access-Control-Allow-Headers' 'Content-Type, Accept';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Error pages
|
# Error pages
|
||||||
|
|||||||
@@ -6,9 +6,7 @@ const server = http.createServer();
|
|||||||
const io = socketIo(server, {
|
const io = socketIo(server, {
|
||||||
cors: {
|
cors: {
|
||||||
origin: "*",
|
origin: "*",
|
||||||
methods: ["GET", "POST"],
|
methods: ["GET", "POST"]
|
||||||
allowedHeaders: ["Content-Type", "Accept"],
|
|
||||||
credentials: false
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user