From 3b2efe3411774558e335bf8c830a9fc632c2b0a8 Mon Sep 17 00:00:00 2001
From: peter_rabbit <pierrejarriges@gmail.com>
Date: Wed, 20 Jan 2021 16:38:12 +0100
Subject: [PATCH] wip:fix:cors

---
 Dockerfile |  2 +-
 nginx.conf | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index bfa3556..91f74a3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -11,4 +11,4 @@ WORKDIR /usr/share/nginx/html
 
 COPY . .
 
-# RUN cp nginx.conf /etc/nginx/nginx.conf
\ No newline at end of file
+RUN cp nginx.conf /etc/nginx/nginx.conf
\ No newline at end of file
diff --git a/nginx.conf b/nginx.conf
index e3c57f0..92c68cf 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -28,10 +28,10 @@ http {
 	
     include /etc/nginx/conf.d/*.conf;
 
-	# server {
-	# 	location / {
-	# 		root /public;
-	# 	}
-	# }
+	server {
+		location / {
+			add_header 'Access-Control-Allow-Origin' '*';
+		}
+	}
 }
 
-- 
GitLab