mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
feat: add access-control-allow-origin header
.. for better access from web applications. improve #479
This commit is contained in:
parent
ed55b659b4
commit
4429dd6985
2 changed files with 9 additions and 4 deletions
|
|
@ -28,6 +28,8 @@ echo "
|
||||||
|
|
||||||
location = / {
|
location = / {
|
||||||
try_files /.well-known/csaf/provider-metadata.json =404;
|
try_files /.well-known/csaf/provider-metadata.json =404;
|
||||||
|
# allow others web applications to get the static information
|
||||||
|
add_header Access-Control-Allow-Origin "*";
|
||||||
}
|
}
|
||||||
|
|
||||||
access_log /var/log/nginx/dns-domain_access.log;
|
access_log /var/log/nginx/dns-domain_access.log;
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,9 @@ echo "
|
||||||
|
|
||||||
# directory listings
|
# directory listings
|
||||||
autoindex on;
|
autoindex on;
|
||||||
|
|
||||||
|
# allow others web applications to get the static information
|
||||||
|
add_header Access-Control-Allow-Origin "*";
|
||||||
" > locationConfig.txt
|
" > locationConfig.txt
|
||||||
sudo sed -i "/^\s*location \/ {/r locationConfig.txt" $NGINX_CONFIG_PATH # Insert config inside location{}
|
sudo sed -i "/^\s*location \/ {/r locationConfig.txt" $NGINX_CONFIG_PATH # Insert config inside location{}
|
||||||
./DNSConfigForItest.sh
|
./DNSConfigForItest.sh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue