add documentation for server-cors-allowed-origins config (#688)

This commit is contained in:
Taimoor Zaeem
2023-10-30 11:08:12 -05:00
committed by GitHub
parent b85ee953b7
commit 57ceabb260
3 changed files with 36 additions and 2 deletions
+17
View File
@@ -774,6 +774,23 @@ raw-media-types
raw-media-types="image/png, font/woff2"
.. _server_cors_allowed_origins:
server-cors-allowed-origins
---------------------------
=============== ===================================
**Type** String
**Default** `n/a`
**Reloadable** N
**Environment** PGRST_SERVER_CORS_ALLOWED_ORIGINS
**In-Database** `pgrst.server_cors_allowed_origins`
=============== ===================================
Specifies allowed CORS origins in this config. See :ref:`cors`.
When this is not set or set to :code:`""`, PostgREST **accepts** CORS requests from any domain.
.. _server-host:
server-host