mirror of
https://github.com/demostf/setup
synced 2026-06-04 00:54:07 +02:00
add cors for static demo hosting
This commit is contained in:
parent
591d28d77e
commit
7d575b0ffe
1 changed files with 3 additions and 0 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name static.${HOST};
|
server_name static.${HOST};
|
||||||
|
|
||||||
|
add_header 'Access-Control-Allow-Origin' '*';
|
||||||
|
|
||||||
root /demos;
|
root /demos;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue