mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-26 08:02:16 +00:00
api/v1: Add POST as an allowed CORS request method (#1796)
Signed-off-by: xdrop <xdrop.me@gmail.com>
This commit is contained in:
parent
60164f903d
commit
f40ecee773
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user