Skip to content

Commit 049347e

Browse files
committed
fix: Use 200 OK HTTP status code for CORS Options
1 parent fdf4282 commit 049347e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/middleware/cors.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ func NewCorsMiddleware(setting server.CorsSetting) *CorsMiddleware {
3030
MaxAge: setting.MaxAge,
3131

3232
OptionsPassthrough: setting.OptionsPassthrough,
33+
34+
OptionsSuccessStatus: http.StatusOK,
3335
})
3436

3537
return &CorsMiddleware{

0 commit comments

Comments
 (0)