We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09c1db9 commit 4d5e097Copy full SHA for 4d5e097
internal/middleware/plugins/cors.go
@@ -48,7 +48,7 @@ func (m *CorsMiddleware) OnResponse(session *rpc.Session) error {
48
}
49
ctx.Response.Header.Set("Access-Control-Allow-Origin", "*")
50
ctx.Response.Header.Set("Access-Control-Allow-Methods", "POST, GET, PUT, DELETE, OPTIONS")
51
- ctx.Response.Header.Set("Access-Control-Allow-Headers", "Content-Type, Content-Length, Token, Authorization")
+ //ctx.Response.Header.Set("Access-Control-Allow-Headers", "Content-Type, Content-Length, Token, Authorization")
52
ctx.Response.Header.Set("Access-Control-Allow-Credentials", "true")
53
54
ctx.Response.Header.Set("X-Relay-Node", session.NodeName)
0 commit comments