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

mediacode's avatar

CORS Problem Angular & Laravel

Has anyone tried to connect an Angulaar app in developer mode e.g. (http://localhost:4200) with a Laravel app on Remote? I get no response from the Laravel application. I know these are CORS issues, but does anyone know a solution for this?

0 likes
1 reply
martinbean's avatar

@mediacode If you’re getting CORS errors then it will tell you what rule is failing, and therefore what to fix.

If the Angular app is running on a different hostname then you’ll need to whitelist that hostname in the Laravel app.

Please or to participate in this conversation.