summaryrefslogtreecommitdiff
path: root/.rr.yaml
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2023-11-04 12:45:58 +0100
committerValery Piashchynski <[email protected]>2023-11-04 12:45:58 +0100
commit2e094d907a78055631bd126b3feb25008089fb34 (patch)
treea4f03f79625644e5a93eb39f1fb4f2977fda0c51 /.rr.yaml
parent89a11738d4a666e19480e2b615d73cd30529ed91 (diff)
feature: `allowed_origin_regex` headers configuration option
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to '.rr.yaml')
-rw-r--r--.rr.yaml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.rr.yaml b/.rr.yaml
index eea2c24f..77b7eb38 100644
--- a/.rr.yaml
+++ b/.rr.yaml
@@ -761,9 +761,14 @@ http:
cors:
# Controls "Access-Control-Allow-Origin" header value (docs: https://mzl.la/2OgD4Qf).
#
- # Default: ""
+ # Default: empty
allowed_origin: "*"
+ # Controls "Access-Control-Allow-Origin" header value (docs: https://mzl.la/2OgD4Qf).
+ #
+ # Default: empty. If set, overrides allowed_origin.
+ allowed_origin_regex: "^https://foo"
+
# Controls "Access-Control-Allow-Headers" header value (docs: https://mzl.la/2OzDVvk).
#
# Default: ""