Skip to content

Commit 4d5e097

Browse files
committedAug 28, 2024·
mod: update cors header
1 parent 09c1db9 commit 4d5e097

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎internal/middleware/plugins/cors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (m *CorsMiddleware) OnResponse(session *rpc.Session) error {
4848
}
4949
ctx.Response.Header.Set("Access-Control-Allow-Origin", "*")
5050
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")
51+
//ctx.Response.Header.Set("Access-Control-Allow-Headers", "Content-Type, Content-Length, Token, Authorization")
5252
ctx.Response.Header.Set("Access-Control-Allow-Credentials", "true")
5353

5454
ctx.Response.Header.Set("X-Relay-Node", session.NodeName)

0 commit comments

Comments
 (0)
Please sign in to comment.