D
D
Dmytro Panyontko2017-03-06 01:06:04
Node.js
Dmytro Panyontko, 2017-03-06 01:06:04

Single Origin Policy Prevents Reading a Remote Resource?

The problem is this, I recently started using Ember, I used a mirage for the server, but now I want to use node.js. Request from foreign origin blocked: The single origin policy does not allow reading the remote resource at 127.0.0.1:3000/spec. (Reason: missing CORS header "Access-Control-Allow-Origin").
How to solve it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2017-03-06
@Stalker_RED

Wiki: CORS
Register the correct one Access-Control-Allow-Originor use jsonp, for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question