Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS Policy error with Umami cloud #82

Closed
robinsimonklein opened this issue Nov 30, 2023 · 4 comments · Fixed by #84
Closed

CORS Policy error with Umami cloud #82

robinsimonklein opened this issue Nov 30, 2023 · 4 comments · Fixed by #84
Assignees

Comments

@robinsimonklein
Copy link

Hi,

I'm using the Umami cloud, and I'm attempting to integrate umami-nuxt with it. However, I'm encountering a CORS policy error, even in the production environment.
The production site is located at https://robinsimonklein.com/ and is deployed on Netlify.

I've seen issues #75, #63, and #52, which appear to be related to the same problem. I've attempted all the configurations mentioned in those issues without success.

Currently, my configuration looks like this:

export default defineAppConfig({
  umami: {
    debug: true,
    version: 2,
    host: 'https://analytics.umami.is/',
    id: '0431f0df-f774-4be1-9de1-b974c1c60cd5',
    autoTrack: true,
  },
});

However, this configuration is not working. I also experimented with using https://eu.umami.is/ as the host (my admin UI displays <script async src="https://eu.umami.is/script.js" data-website-id="0431f0df-f774-4be1-9de1-b974c1c60cd5"></script>
for the tracking code), but that also did not resolve the issue.

I'm currently using nuxt-umami version v2.5.5.

I'm uncertain how to debug this problem, so any assistance would be greatly appreciated. :)

@ijkml
Copy link
Owner

ijkml commented Dec 5, 2023

Hi @robinsimonklein, sorry and thanks for being patient. I'll look into this as soon as I can.

@ijkml ijkml self-assigned this Dec 5, 2023
@ijkml
Copy link
Owner

ijkml commented Dec 5, 2023

Hello again, Robin. I can't reproduce this issue, sending with the ID and host you provided works well. Can you please try disabling your ad-blocker if you have one and let me know, ad-blockers now block umami.is requests.

@ijkml
Copy link
Owner

ijkml commented Dec 9, 2023

Hi @robinsimonklein, [how] did you manage to fix the issue?

@robinsimonklein
Copy link
Author

Hi @ijkml,
Of course it was my ad blocker (uBlock origin), sorry for that 😅 No idea why I didn't check it sooner...

Maybe a little reminder in the doc can help the next ones avoid being fooled?

Anyway thanks for your quick answer !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants