Oct 17, 2022
0
Level 1
[API] When I request to my API, my user gets unauthenticated.
Hi there! Here are the details:
I have two Laravel applications running: - The Website, who consumes; - The CMS, which delivers data via API.
The weird thing is, when I make a request from the Website to any of the CMS endpoints, everything works perfectly but the user of the CMS gets logged out.
When I access the API route inserting it directly in the URL or Postman, the problem does not occur, so there's something happening in the "cross-enviroment" communication.
The requests are being made with PHP native cURL.
Tell me which snippets of code I should provide so you can help me!
Thank you.
Please or to participate in this conversation.