Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
06a069607c
1 changed files with 1 additions and 0 deletions
|
@ -530,6 +530,7 @@ func corsMiddleware() gin.HandlerFunc {
|
|||
c.Header("Access-Control-Allow-Private-Network", "true")
|
||||
|
||||
if c.Request.Method == "OPTIONS" {
|
||||
c.Header("Access-Control-Max-Age", 600)
|
||||
c.AbortWithStatus(204)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue