loading...

No 'Access-Control-Allow-Origin

ajaydeveloper profile image AjayMalhotra ・1 min read

I am making an application with angular and backend as laravel but when I hit the api, I get "No 'Access-Control-Allow-Origin' header is present on the requested resource" and I am able to solve this issue and here I sharing that and hope it will help others.

Access-Control-Allow-Origin

Thank you
Therichpost

Discussion

pic
Editor guide
 

Hi there, you can check out this package: github.com/barryvdh/laravel-cors.

I personally use it to solve this problem too.