How to fix CORS policy error in Laravel app?

How to fix CORS policy error in Laravel app?

jagruti-vekariy
Visitor
2 0 0

Error ===> Access to XMLHttpRequest at 'https://f6e2-49-36-95-223.ngrok.io/authenticate' (redirected from 'https://f6e2-49-36-95-223.ngrok.io/api/get_api') from origin 'https://be3z7uaqd13ydmq9-58133086400.shopifypreview.com' 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.

image_2021_09_08T08_44_32_619Z.pngimage_2021_09_08T08_43_03_122Z.pngimage_2021_09_08T08_45_40_119Z.png

Replies 0 (0)