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 with custom API endpoint #3022

Open
romangg opened this issue Oct 24, 2024 · 1 comment
Open

CORS with custom API endpoint #3022

romangg opened this issue Oct 24, 2024 · 1 comment

Comments

@romangg
Copy link

romangg commented Oct 24, 2024

Describe the Bug

I'm running latest Umami Docker container behind Traefik. Website to track runs Nuxt with Umami module. When using a custom API endpoint like /api/getdata instead of /api/send I'm getting CORS violations.

Making exceptions for CORS via Traefik similar to here, removes the error. But then I get 405 - Method not allowed.

Only the default endpoint /api/send works for me without issues.

Database

PostgreSQL

Relevant log output

No response

Which Umami version are you using? (if relevant)

No response

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

Docker

@mikecao
Copy link
Collaborator

mikecao commented Oct 25, 2024

Are you able to run it without Traefik?

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

No branches or pull requests

2 participants