3

I'm running an Angular script that performs an $http.get(...) on a REST resource located at http://localhost:7700, but it's executing from a page served at http://localhost:4400. I'm not certain if this is the problem, but it results in the error() callback firing, with a status of 0, and nothing in the data parameter. Any ideas on why this would be happening?

1 Answer 1

9

Same origin policy is protocol + host + port

You would need to enable CORS support to allow this situation

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.