https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
h

helpful-carpenter-3208

03/09/2022, 8:08 AM
Hi, I met a issue about self-hosted, it shows CORS error when open the login page as it try to connect to the 3100 port which is different than our domain name and default 443 port. So wondering if there is any config that can allow multiple origin name to bypass the CORS error? Or is the 3000 and 3100 serve totally separate path, then I can add rule to route the request in our Cloudfront config
f

fresh-football-47124

03/09/2022, 8:12 AM
yes, you can use the CORS_ORIGIN_REGEX env variable
also make sure your APP_ORIGIN and API_HOST are set to reflect your current setup
h

helpful-carpenter-3208

03/09/2022, 8:14 AM
Cool~ I will give it a try.
I forgot to update here. the env works for me! thanks~
f

fresh-football-47124

03/09/2022, 4:50 PM
👍
62 Views