Skip to content

Commit

Permalink
UI: fix nginx when fetching data from outside
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Arnauer committed Nov 3, 2021
1 parent 47a219a commit 68477ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ server {

add_header X-Frame-Options "sameorigin";
add_header X-Content-Type-Options "nosniff";
add_header Content-Security-Policy "default-src 'self'; style-src 'self' 'unsafe-inline'; worker-src 'self' blob:; child-src 'self' blob:; frame-ancestors 'self'; form-action 'self'";
# If data mus be fetched from external servers (e.g. exchange rates), add the URL to connect-src:
add_header Content-Security-Policy "default-src 'self'; connect-src 'self' https://sdw-wsrest.ecb.europa.eu/service/data/EXR/; style-src 'self' 'unsafe-inline'; worker-src 'self' blob:; child-src 'self' blob:; frame-ancestors 'self'; form-action 'self'";

#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
Expand Down

0 comments on commit 68477ee

Please sign in to comment.