Skip to content
Snippets Groups Projects
Commit 6fc80e35 authored by Jonah Husson's avatar Jonah Husson
Browse files

Update cors allowed headers

parent 33c29b75
No related branches found
No related tags found
1 merge request!4Jonah/rest
......@@ -54,7 +54,7 @@ func StartServer(params Params) error {
r.Use(cors.New(cors.Config{
AllowAllOrigins: true,
AllowMethods: []string{"POST"},
AllowHeaders: []string{"Origin"},
AllowHeaders: []string{"Origin", "access-control-allow-origin"},
ExposeHeaders: []string{"Content-Length"},
AllowCredentials: true,
MaxAge: 12 * time.Hour,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment