about summary refs log tree commit diff
path: root/corp/ops/yandex
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-06-09T13·53+0300
committertazjin <tazjin@tvl.su>2023-06-10T11·23+0000
commitf72d1f459d5539719ff765a0ad162f40b711b667 (patch)
tree002a74fd6d681e99e5d6b43f2329266114300f0a /corp/ops/yandex
parentfd98f0644f60cb8718808c40a6e4717b003eb1a8 (diff)
fix(corp/ops): add CORS configuration for backend r/6256
Change-Id: Ia953523eff463bb98189735bf4cfad6390b8eb71
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8735
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'corp/ops/yandex')
-rw-r--r--corp/ops/yandex/rih.tf5
1 files changed, 5 insertions, 0 deletions
diff --git a/corp/ops/yandex/rih.tf b/corp/ops/yandex/rih.tf
index b9a6889c9bf1..2db420835a12 100644
--- a/corp/ops/yandex/rih.tf
+++ b/corp/ops/yandex/rih.tf
@@ -131,6 +131,11 @@ resource "yandex_api_gateway" "rih_gateway" {
     info:
       version: 1.0.0
       title: RIH API
+    x-yc-apigateway:
+      cors:
+        origin: 'https://russiaishiring.com'
+        methods: '*'
+        allowedHeaders: '*'
     paths:
       /{proxy+}:
         x-yc-apigateway-any-method: