diff --git a/Dockerfile b/Dockerfile index bfa35568c479504f038cabbb0ffb3237f1ff1473..91f74a34b651c3379f3d8a287db84327818f2473 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 e3c57f0dc5733efe743399653bf6e7f320d90556..92c68cff334f06110f758524d08319fcc41514db 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' '*'; + } + } }