kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Mastodon nginx: fix CORS on /instance
rodzic
02edd5cd36
commit
e819d9560a
|
@ -104,6 +104,11 @@ server {
|
|||
# Enable CORS so we can fetch them.
|
||||
location /instance {
|
||||
add_header Access-Control-Allow-Origin "*";
|
||||
|
||||
if ($request_method = 'OPTIONS') {
|
||||
add_header Access-Control-Allow-Origin "*";
|
||||
return 204;
|
||||
}
|
||||
}
|
||||
|
||||
# Soapbox ServiceWorker.
|
||||
|
|
Ładowanie…
Reference in New Issue