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

knn's avatar
Level 1

No cookies in Request Header on localhost with different port

Hi.

I'm using Laravel 5.4 for the backend and using Angular 6 in the frontend. While developing I use the Angular dev server which listens to port 4200. When I log into my Laravel Application, I can't make requests because the cookie Headers are not set automatically with domain localhost:4200.

Is there a way to tell Laravel to use all ports on localhost or to allow localhost:4200 too?

Thanks.

0 likes
0 replies

Please or to participate in this conversation.