Skip to content

Commit ef1b9f4

Browse files
authored
operators: add CORS requirements (#233)
1 parent 50cad1d commit ef1b9f4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/operators/testnets/requirements.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ The load balancer configuration **must** have the following properties:
4646
4. Support a maximum body size of up to 20 MB.
4747
5. Provide TLS termination with a certificate signed by a known CA.
4848

49+
To support connections from the Web client, CORS headers must be provided.
50+
4951
Finally, the load balancer that performs TLS termination must redirect traffic
5052
from `443` to `19100` (the port exposed by the proxy).
5153

@@ -81,6 +83,7 @@ server {
8183
proxy_set_header X-Real-IP $remote_addr;
8284
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
8385
proxy_set_header X-Forwarded-Proto $scheme;
86+
proxy_set_header Access-Control-Allow-Origin *;
8487
}
8588
8689
keepalive_timeout 10m 60s;
@@ -107,6 +110,8 @@ example.com {
107110
read_timeout 10m
108111
write_timeout 10m
109112
}
113+
114+
header Access-Control-Allow-Origin *
110115
}
111116
}
112117
```

0 commit comments

Comments
 (0)