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.
This commit is contained in:
parent
0e56ac1c2b
commit
741a59e0cc
@ -52,7 +52,10 @@ module.exports = {
|
|||||||
target,
|
target,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
cookieDomainRewrite: 'localhost',
|
cookieDomainRewrite: 'localhost',
|
||||||
ws: true
|
ws: true,
|
||||||
|
headers: {
|
||||||
|
'Origin': target
|
||||||
|
}
|
||||||
},
|
},
|
||||||
'/oauth/revoke': {
|
'/oauth/revoke': {
|
||||||
target,
|
target,
|
||||||
|
Loading…
Reference in New Issue
Block a user