From 1d781782a5df8a7ef1b2a482b3dfa5fdd76d76fd Mon Sep 17 00:00:00 2001 From: Hongbo Miao <3375461+hongbo-miao@users.noreply.github.com> Date: Tue, 31 Dec 2024 23:09:50 -0800 Subject: [PATCH] chore(api-node): allow render website in cors (#22180) --- api-node/src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-node/src/config.ts b/api-node/src/config.ts index 84eaed15ed..948d2cbc71 100644 --- a/api-node/src/config.ts +++ b/api-node/src/config.ts @@ -149,7 +149,7 @@ const config: Config = { `${HTTP_PROTOCOL}://${HOST}:62470`, 'https://www.k8s-hongbomiao.com', ], - prodCORSAllowOrigins: [...sharedCORSAllowOrigins, 'https://www.hongbomiao.com'], + prodCORSAllowOrigins: [...sharedCORSAllowOrigins, 'https://hongbomiao-com.onrender.com', 'https://www.hongbomiao.com'], devCSPConnectSrc: [...sharedCSPConnectSrc, `${WS_PROTOCOL}://${HOST}:80`, 'wss://www.k8s-hongbomiao.com'], prodCSPConnectSrc: [ ...sharedCSPConnectSrc,