Skip to content
Snippets Groups Projects
Commit bd42dce4 authored by Ophestra's avatar Ophestra
Browse files

Merge branch 'cors-unset' into 'main'

fix(api): use default permissive CORS configuration when unset

See merge request !12
parents a604811f 1598a144
No related branches found
No related tags found
1 merge request!12fix(api): use default permissive CORS configuration when unset
Pipeline #991 passed
...@@ -23,7 +23,8 @@ func serve(sig chan os.Signal, db *leveldb.DB) error { ...@@ -23,7 +23,8 @@ func serve(sig chan os.Signal, db *leveldb.DB) error {
AllowHeaders: []string{"Origin", "Content-Type", "Accept"}, AllowHeaders: []string{"Origin", "Content-Type", "Accept"},
})) }))
} else { } else {
log.Println("CORS disabled") log.Println("CORS unset")
app.Use(cors.New(cors.ConfigDefault))
} }
var captcha fiber.Handler var captcha fiber.Handler
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment