This commit is contained in:
2019-08-16 16:06:17 +02:00
committed by GitHub
parent cf94ff10ac
commit c7fa8b2ce8

View File

@@ -39,12 +39,14 @@ server {
add_header 'Content-Length' 0;
return 204;
}
if ($request_method = 'GET') {
add_header 'Access-Control-Allow-Origin' 'https://kevinmidboe.com';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
}
if ($request_method = 'POST') {
add_header 'Access-Control-Allow-Origin' 'https://kevinmidboe.com';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';