Mastodon nginx: fix CORS on /instance
This commit is contained in:
parent
02edd5cd36
commit
e819d9560a
1 changed files with 5 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue