[connfa-webapp] Add CORS



commit 71ce816bdbcaf68543bbcadbaa057bab04ebcd32
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Fri Aug 23 07:41:04 2019 +0200

    Add CORS

 nginx.conf | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/nginx.conf b/nginx.conf
index 77c11d0..95ed8f7 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -3,4 +3,6 @@ server {
     listen [::]:8080 default_server;
     root /var/www/connfa;
     try_files $uri$args $uri$args/ $uri $uri/ /index.html =404;
+    add_header 'Access-Control-Allow-Origin' '*';
+    add_header 'Access-Control-Allow-Methods' 'GET';
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]