posthog icon indicating copy to clipboard operation
posthog copied to clipboard

Access-Control-Allow-Origin missing on app.posthog.com

Open nthbooth-feedr opened this issue 3 years ago • 3 comments
trafficstars

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!

nthbooth-feedr avatar Mar 18 '22 11:03 nthbooth-feedr

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.

muratcanozdemir avatar Apr 29 '22 13:04 muratcanozdemir

Was there a resolution or workaround for this?

bigbitbus avatar Aug 11 '22 20:08 bigbitbus

You have to set up a reverse proxy.

hgezim avatar Dec 24 '22 10:12 hgezim