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.
このコミットが含まれているのは:
Tusooa Zhu 2022-04-06 18:50:33 -04:00
コミット 741a59e0cc
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 7B467EDE43A08224
1個のファイルの変更4行の追加1行の削除

ファイルの表示

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