Skip to content
Snippets Groups Projects
Unverified Commit 741a59e0 authored by tusooa's avatar tusooa :zap:
Browse files

Fix phoenix sockets in dev mode

phoenix requires the Origin header to be set to the actual address,
so "http://localhost:xxxx" will not work.
parent 0e56ac1c
Branches
Tags
No related merge requests found
......@@ -52,7 +52,10 @@ module.exports = {
target,
changeOrigin: true,
cookieDomainRewrite: 'localhost',
ws: true
ws: true,
headers: {
'Origin': target
}
},
'/oauth/revoke': {
target,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment