0

On local development I am facing following error on ajax request:

Access to XMLHttpRequest at 'http://pmb.local/jsonapi/product' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Hassan Ali Shahzad
  • 2,439
  • 29
  • 32

1 Answers1

0

Need to the following change this this file enter image description here

Ddont forget to run:

php artisan optimize
Hassan Ali Shahzad
  • 2,439
  • 29
  • 32