Allow the headers we are sending..

This commit is contained in:
2019-09-15 19:30:55 +02:00
parent c7fa8b2ce8
commit 3881f8e0cc

View File

@@ -35,6 +35,7 @@ server {
if ($request_method = 'OPTIONS') { if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' 'https://kevinmidboe.com'; add_header 'Access-Control-Allow-Origin' 'https://kevinmidboe.com';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Content-Type, Content-Length';
add_header 'Content-Type' 'application/json; charset=utf-8'; add_header 'Content-Type' 'application/json; charset=utf-8';
add_header 'Content-Length' 0; add_header 'Content-Length' 0;
return 204; return 204;