added subscription end

This commit is contained in:
Fran Jurmanovic
2021-07-30 19:56:27 +02:00
parent f2bc3dc9fe
commit 3c2cd4710f
3 changed files with 34 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ func CORSMiddleware() gin.HandlerFunc {
c.Writer.Header().Set("Access-Control-Allow-Credentials", "true")
c.Writer.Header().Set("Access-Control-Allow-Headers", "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With")
c.Writer.Header().Set("Access-Control-Allow-Methods", "POST, OPTIONS, GET, PUT")
if c.Request.Method == "OPTIONS" {
c.AbortWithStatus(204)
return