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

RabbitSC2's avatar

set-cookie not showing in headers

Hi guys, im trying to integrate an API with laravel via a controller. Im using cURL to process my request, i have tested the request via postman and i can see the set-cookie headers in the response.

HOWEVER, i cannot seem to see them or set the cookie information when i run it from my page. With this information, is there anything obvious i could try?

many thanks

Sorry for being so vague.

Im using curl via a controller and making a post request with the credentials needed to login, authenticate and in response i get an "AccessToken" in the header along with a set-cookie response.

These 2 responses show up just fine in POSTMAN, but will not show when running it from Laravel. The only set-cookie in the laravel response is the XSRF-TOKEN

0 likes
0 replies

Please or to participate in this conversation.