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

Unable to get access to the api #72

Open
aneesa04 opened this issue Jun 18, 2024 · 1 comment
Open

Unable to get access to the api #72

aneesa04 opened this issue Jun 18, 2024 · 1 comment

Comments

@aneesa04
Copy link

I have created an application with this origin http://localhost:5173 but despite that I keep getting this error

Access to fetch at 'https://api.astronomyapi.com/api/v2/bodies/events/Sun?latitude=22.57620861111111&longitude=88.35759838888889&elevation=15&from_date=2024-06-18&to_date=2024-07-18&time=17:19:12' from origin 'http://localhost:5173' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Please help.

@astroanu
Copy link
Member

astroanu commented Jul 8, 2024

Could you please put a code sample so I can check?

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