diff --git a/endpoints.conf b/endpoints.conf index f44810e..d82672a 100644 --- a/endpoints.conf +++ b/endpoints.conf @@ -6,6 +6,9 @@ location / { } if ($request_method = 'OPTIONS') { + add_header 'Access-Control-Allow-Origin' '*'; + add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; + add_header 'Access-Control-Allow-Headers' '*'; add_header 'Content-Length' 0; return 204; }