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

Access to api blocked #4

Closed
blackdante101 opened this issue Sep 20, 2021 · 9 comments
Closed

Access to api blocked #4

blackdante101 opened this issue Sep 20, 2021 · 9 comments

Comments

@blackdante101
Copy link

Access to api from localhost/3000 blocked by cors policy

@Jaagrav
Copy link
Owner

Jaagrav commented Oct 24, 2021

You're supposed to call the API from the backend and not the front end, use netlify functions or use it using nodejs

@mohdafzal330
Copy link

Hi Jaagrav,
Why I can't call the API's from front end ?

@Jaagrav
Copy link
Owner

Jaagrav commented Nov 16, 2021

This issue has already been tackled here

@Jaagrav Jaagrav closed this as completed Nov 16, 2021
@mohdafzal330
Copy link

But still I'm not able to make API call from angular

@mohdafzal330
Copy link

showing CORS policy

@Jaagrav
Copy link
Owner

Jaagrav commented Nov 16, 2021

It shouldn't, can you share the screenshot of both the error and the code?

@mohdafzal330
Copy link

mohdafzal330 commented Nov 16, 2021 via email

@mohdafzal330
Copy link

Here is the code
image

Here is the error I'm getting
image

@Jaagrav
Copy link
Owner

Jaagrav commented Nov 16, 2021

@mohdafzal330 Dude you did not read the comment properly did you? Use the link I have shown in the comment.

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

3 participants