Commit f8d27eec authored by Dennis Willers's avatar Dennis Willers 🏀

Now no CORS Problems anymore

parent 1ea5e257
Pipeline #326 passed with stages
in 3 minutes and 8 seconds
...@@ -2,10 +2,7 @@ const Express = require("express")(); ...@@ -2,10 +2,7 @@ const Express = require("express")();
const Http = require("http").Server(Express); const Http = require("http").Server(Express);
const Socketio = require("socket.io")(Http, { const Socketio = require("socket.io")(Http, {
cors: { cors: {
origin: "ws://tabu-server.willers.digital", origin: '*',
methods: ["GET", "POST"],
allowedHeaders: ["Access-Control-Allow-Origin"],
credentials: true
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment