Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

leighDaillan's avatar

Laravel 11 Running on IIS

Since my company requires IIS as a web server, why does my Laravel 11 api work in Postman but not in IIS when I integrate it into my frontend?

error: login:1 Access to XMLHttpRequest at 'laravel api' from origin 'front end' 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.

0 likes
1 reply

Please or to participate in this conversation.