fix: add CORS for plugin.js so it loads from foreign origins (bylampa.online)
This commit is contained in:
1 parent
d305f8e2bf
commit
8684239a42
1 file changed
+8
@@ -30,7 +30,15 @@ server {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
# Плагин Lampa: нужен CORS, т.к. грузится с чужих origin (lampa.mx, bylampa.online)
|
||||
location = /plugin.js {
|
||||
add_header Access-Control-Allow-Origin * always;
|
||||
default_type application/javascript;
|
||||
try_files /plugin.js =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
add_header Access-Control-Allow-Origin * always;
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user