skip to Main Content

Jquery – Laravel 11 Cors issue

I've configured my laravel 11 application to handle cors using the following cors.php file in the config dir <?php return [ 'paths' => ['*'], 'allowed_methods' => ['GET, POST, PUT, OPTIONS'], 'allowed_origins' => ['http://localhost:8082'], 'allowed_origins_patterns' => [], 'allowed_headers' => ['Origin, Content-Type,…

VIEW QUESTION

Reactjs – I can't acces my data when I deploy in vercel api. It shows only cors problem – how to solve this?

:5173/watches:1 Access to fetch at 'https://watch-websites-server-site-mr3f7mg2v-md-sabbir-khans-projects.vercel.app/watches' from origin 'http://localhost:5173' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the…

VIEW QUESTION
Back To Top
Search