1 parent c652c9a commit 3828aedCopy full SHA for 3828aed
1 file changed
azure/proxy.go
@@ -20,8 +20,8 @@ import (
20
func Proxy(c *gin.Context) {
21
if c.Request.Method == http.MethodOptions {
22
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")
+ c.Header("Access-Control-Allow-Methods", "GET, OPTIONS, POST")
+ c.Header("Access-Control-Allow-Headers", "Authorization, Content-Type")
25
c.Status(200)
26
return
27
}
0 commit comments