We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c467d3f commit e25de9fCopy full SHA for e25de9f
1 file changed
nginx.conf
@@ -2,6 +2,11 @@ events {
2
worker_connections 1024;
3
}
4
5
+map $http_origin $allow_origin {
6
+ ~^https://(.*\.)?geode-solutions\.com$ $http_origin;
7
+ default "";
8
+}
9
+
10
http {
11
# Nginx will handle gzip compression of responses from the app server
12
gzip on;
@@ -14,6 +19,10 @@ http {
14
19
server_name localhost;
15
20
16
21
client_max_body_size 0;
22
23
+ add_header Access-Control-Allow-Origin $allow_origin;
24
+ add_header Access-Control-Allow-Credentials true;
25
+ add_header Vary Origin;
17
26
18
27
location ~ "^/geode/" {
28
if ($request_method !~ ^(DELETE|GET|POST|PUT|OPTIONS)$) {
0 commit comments