api/v1: Add POST as an allowed CORS request method (#1796)

Signed-off-by: xdrop <xdrop.me@gmail.com>
This commit is contained in:
Panayiotis 2019-03-14 11:14:23 +00:00 committed by Max Inden
parent 60164f903d
commit f40ecee773

View File

@ -43,7 +43,7 @@ import (
var corsHeaders = map[string]string{
"Access-Control-Allow-Headers": "Accept, Authorization, Content-Type, Origin",
"Access-Control-Allow-Methods": "GET, DELETE, OPTIONS",
"Access-Control-Allow-Methods": "GET, POST, DELETE, OPTIONS",
"Access-Control-Allow-Origin": "*",
"Access-Control-Expose-Headers": "Date",
"Cache-Control": "no-cache, no-store, must-revalidate",