Skip to content

Commit 3828aed

Browse files
committed
fix: CORS
1 parent c652c9a commit 3828aed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

azure/proxy.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import (
2020
func Proxy(c *gin.Context) {
2121
if c.Request.Method == http.MethodOptions {
2222
c.Header("Access-Control-Allow-Origin", "*")
23-
c.Header("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS")
24-
c.Header("Access-Control-Allow-Headers", "Authorization")
23+
c.Header("Access-Control-Allow-Methods", "GET, OPTIONS, POST")
24+
c.Header("Access-Control-Allow-Headers", "Authorization, Content-Type")
2525
c.Status(200)
2626
return
2727
}

0 commit comments

Comments
 (0)