kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'nginx-cors' into 'develop'
Mastodon nginx: fix CORS on /instance See merge request soapbox-pub/soapbox-fe!1404soapbox-json-api
commit
fa1259ff27
|
@ -104,6 +104,11 @@ server {
|
||||||
# Enable CORS so we can fetch them.
|
# Enable CORS so we can fetch them.
|
||||||
location /instance {
|
location /instance {
|
||||||
add_header Access-Control-Allow-Origin "*";
|
add_header Access-Control-Allow-Origin "*";
|
||||||
|
|
||||||
|
if ($request_method = 'OPTIONS') {
|
||||||
|
add_header Access-Control-Allow-Origin "*";
|
||||||
|
return 204;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Soapbox ServiceWorker.
|
# Soapbox ServiceWorker.
|
||||||
|
|
Ładowanie…
Reference in New Issue