G
G
GaserV2017-04-09 14:04:24
Ember.js
GaserV, 2017-04-09 14:04:24

Why are items with api not returned?

Hi all! Such a problem. EMber sends a request but cannot receive a response. As I understand it, access to third-party applications is apparently not allowed. How to resolve it?

XMLHttpRequest cannot load http://my-api/items. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GaserV, 2017-04-09
@GaserV

Fixed. Who cares about the solution - en.vedovelli.com.br/2015/web-development/Laravel-5...

M
Mokhirjon Naimov, 2017-04-09
@zvermafia

I think this package will solve your problem: CORS Middleware for Laravel 5

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question