Sunday, September 20, 2020
therichposts@gmail.com

Angular 6 – No ‘Access-Control-Allow-Origin’ header is present on the requested resource

QuestionsCategory: QuestionsAngular 6 – No ‘Access-Control-Allow-Origin’ header is present on the requested resource
Ajay Malhotra Staff asked 2 years ago

Angular 6 – No ‘Access-Control-Allow-Origin’ header is present on the requested resource I got this error, when i was connecting my angular app with laravel. please help  

1 Answers
Best Answer
Ajay Malhotra Staff answered 2 years ago

Solved: I found the solution when I am connecting my angular app with laravel in xampp:
 
You just need to add below code in yours xampp\apache\conf\httpd.conf and your problem will be solved:
 

Header set Access-Control-Allow-Origin "*"