Hi, I met a issue about self-hosted, it shows CORS...
# ask-questions
h
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
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
Cool~ I will give it a try.
I forgot to update here. the env works for me! thanks~
f
👍
153 Views