Commit cd410431 authored by Ben Hayward's avatar Ben Hayward
Browse files

Updates

parent 9f73065f
......@@ -102,7 +102,7 @@ server {
log_not_found off;
}
location ~ ^(/api|/fs|/icon|/carousel|/emails/unsubscribe) {
location ~ ^(/api|/fs|/icon|/carousel|/emails/unsubscribe|/oembed|/oembed/) {
add_header 'Access-Control-Allow-Origin' "$http_origin";
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS';
......
......@@ -40,7 +40,7 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
location ~ ^(/api|/fs|/icon|/carousel|/emails/unsubscribe) {
location ~ ^(/api|/fs|/icon|/carousel|/emails/unsubscribe|/oembed|/oembed/) {
add_header 'Access-Control-Allow-Origin' "$http_origin";
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS';
......
......@@ -118,7 +118,7 @@ server {
proxy_read_timeout 5s; # Longer than 5 seconds then go back to nossr
}
location ~ ^(/api/|/fs/|/icon|/carousel|/checkout|/oauth2|/archive/thumbnail|/apple-app-site-association|/emails/unsubscribe) {
location ~ ^(/api/|/fs/|/icon|/carousel|/checkout|/oauth2|/archive/thumbnail|/apple-app-site-association|/emails/unsubscribe|/oembed|/oembed/) {
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains; preload";
add_header 'Access-Control-Allow-Origin' "$http_origin";
add_header 'Access-Control-Allow-Credentials' 'true';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment