You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* xss fix
* doc
* make gen
* formatted
* undo yb change
* gen
* fiximports
* fixed
* 2
* cors allowed for market
* docs
* cors fix + connection debug for yb + http
* docs
* warn on star
Copy file name to clipboardExpand all lines: documentation/en/curio-market/curio-http-server.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,8 +114,8 @@ The Curio HTTP Server can be customized using the `HTTPConfig` structure, which
114
114
Default: `2 minutes` — Prevents resources from being consumed by idle connections. If your application expects longer periods of inactivity, such as in long polling or WebSocket connections, this value should be adjusted accordingly.
115
115
***ReadHeaderTimeout**: The time allowed to read the request headers from the client.\
116
116
Default: `5 seconds` — Prevents slow clients from keeping connections open without sending complete headers. For standard web traffic, this value is sufficient, but it may need adjustment for certain client environments.
117
-
***EnableCORS**: A boolean flag to enable or disable Cross-Origin Resource Sharing (CORS).\
118
-
Default: `true`— This allows cross-origin requests, which is important for web applications that might make API calls from different domains.
117
+
***CORSOrigins**: Specifies the allowed origins for CORS requests. If empty, CORS is disabled.\
118
+
Default: `[]` (empty array) — This disables CORS by default for security. To enable CORS, specify the allowed origins (e.g., `["https://example.com", "https://app.example.com"]`). This is required for third-party UI servers.
119
119
***CompressionLevels**: Defines the compression levels for GZIP, Brotli, and Deflate, which are used to optimize the response size. The defaults balance performance and bandwidth savings:
120
120
***GzipLevel**: Default: `6` — A moderate compression level that balances speed and compression ratio, suitable for general-purpose use.
121
121
***BrotliLevel**: Default: `4` — A moderate Brotli compression level, which provides better compression than GZIP but is more CPU-intensive. This level is good for text-heavy responses like HTML or JSON.
0 commit comments