Skip to content

Commit

Permalink
fix: CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
stulzq committed Apr 26, 2023
1 parent c652c9a commit 3828aed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azure/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
func Proxy(c *gin.Context) {
if c.Request.Method == http.MethodOptions {
c.Header("Access-Control-Allow-Origin", "*")
c.Header("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS")
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")
c.Status(200)
return
}
Expand Down

0 comments on commit 3828aed

Please sign in to comment.