From c4720db5767cd84db4fa5e36a13da85cfe2bb400 Mon Sep 17 00:00:00 2001 From: Edward Oliveira Date: Mon, 4 Oct 2021 14:13:12 -0300 Subject: [PATCH] Habilita acesso cross-domain na API --- docker/config/nginx/sapl.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/config/nginx/sapl.conf b/docker/config/nginx/sapl.conf index ef3dac421..28c2cb984 100644 --- a/docker/config/nginx/sapl.conf +++ b/docker/config/nginx/sapl.conf @@ -11,6 +11,10 @@ server { client_max_body_size 4G; + location /api/ { + add_header 'Access-Control-Allow-Origin' '*'; + } + location /static/ { alias /var/interlegis/sapl/collected_static/; }