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 error on flutter web when sending events #21

Open
johannesstricker opened this issue Dec 28, 2024 · 0 comments
Open

CORS error on flutter web when sending events #21

johannesstricker opened this issue Dec 28, 2024 · 0 comments

Comments

@johannesstricker
Copy link

Hey, I wanted to try aptabase for flutter web, but events cannot be sent to the server due to CORS issues.

Access to XMLHttpRequest at 'https://eu.aptabase.com/api/v0/events' from origin 'http://localhost:5001' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

As you can see, I'm running locally on port 5001. I tested this against self-hosted and managed aptabase and got the same problem with both. Is this a known issue? I thought that aptabase accepts any origins by default.

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

1 participant