Anyone have issues with multiple accept origin hea...
# announcements
e
Anyone have issues with multiple accept origin headers being sent from a self hosted solution
f
Hi Grant, what is your APP_ORIGIN setting?
you can also set the environment variable: CORS_ORIGIN_REGEX
e
I'm going to have to wait for my coworker to get back to me with access credentials to the server. I will reply tomorrow.
f
okay!
e
Thank you so much for the quick response. I really appreciate it
@fresh-football-47124 APP_ORIGIN: https://growthbook.fm.co:3000
And I get two response headers for Access-Control-Allow-Origin
@fresh-football-47124 I don't see the CORS_ORIGIN_REGEX variable in the docs. What would this do for me in this situation?
f
well, depends a bit on where the other header is coming from
are you running self hosted growthbook in docker?
the CORS_ORIGIN_REGEX is added to the APP_ORIGIN when determining the CORS headers
but it should be a comma separated list, not two headers.
e
Self hosted in docker
APP_ORIGIN is https://growthbook.fm.co:3000 But its also sending an origin header of '*' which is confusing