Browse Source

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.
remove-mods
Tusooa Zhu 4 months ago
parent
commit
741a59e0cc
No known key found for this signature in database GPG Key ID: 7B467EDE43A08224
  1. 5
      config/index.js

5
config/index.js

@ -52,7 +52,10 @@ module.exports = {
target,
changeOrigin: true,
cookieDomainRewrite: 'localhost',
ws: true
ws: true,
headers: {
'Origin': target
}
},
'/oauth/revoke': {
target,

Loading…
Cancel
Save