posthog
posthog copied to clipboard
Access-Control-Allow-Origin missing on app.posthog.com
Bug description
We are now getting the following error on all of our properties that use posthog: Access to XMLHttpRequest at 'https://app.posthog.com/s/?compression=gzip-js&ip=1&_=1647600995365' from origin 'https://abc/,com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
This is appearing in the console log in the browser.
Expected behavior
I would not have expected the error.
How to reproduce
visit feedr.co and look at the console log with chrome Version 100.0.4896.46 (Official Build) beta (64-bit) or Version 99.0.4844.51 (Official Build) (64-bit)
Environment
- [X] PostHog Cloud
- [ ] self-hosted PostHog (ClickHouse-based), version/commit: please provide
- [ ] self-hosted PostHog (Postgres-based, legacy), version/commit: please provide
Additional context
Thank you for your bug report – we love squashing them!
Same here, on a self-hosted Posthog - Postgres-based, v1.33.0. Gave the API url and the token to the front end guys for integration, then received this error.
Was there a resolution or workaround for this?
You have to set up a reverse proxy.