0

I'm trying to access STREAK Api using angular. When i'm sending the request to Streak i'm getting a CORS Policy error but when trying to access the same request using Node.js i'm getting the response.

So my question is, why is that happening? both the client and the server are hosted on localhost

1 Answer 1

1

For security reasons, browsers restrict cross-origin HTTP requests initiated from scripts.

This doesn't have anything to do with angular or any other javascript framework.

You can read more about CORS here

Sign up to request clarification or add additional context in comments.

1 Comment

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.