We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 012f608 commit 0e3819bCopy full SHA for 0e3819b
Dockerfile
@@ -125,6 +125,8 @@ ENV PREFETCH_FOLDERS=true
125
126
ENV PREFETCH_FILES=false
127
128
+ENV CORS_ALLOW_ANY_ORIGIN=true
129
+
130
EXPOSE 8080
131
132
CMD ["/init.sh"]
server/nginx/conf.d/default.conf
@@ -17,6 +17,9 @@ server {
17
$[if `process.env.EXPERIMENTAL_CACHE`]$
18
fastcgi_cache cache;
19
$[end]$
20
+ $[if `process.env.CORS_ALLOW_ANY_ORIGIN == "true"`]$
21
+ add_header Access-Control-Allow-Origin *;
22
+ $[end]$
23
fastcgi_pass 127.0.0.1:9000;
24
fastcgi_param SCRIPT_FILENAME /var/www/html/index.php;
25
}
0 commit comments