1
0
Fork 0
forked from srxl/akkoma-fe

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:
Tusooa Zhu 2022-04-06 18:50:33 -04:00
parent 0e56ac1c2b
commit 741a59e0cc
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224

View file

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