extjac 0 Newbie Poster

Hello. I am trying to implement a Laravel API that will be consumed by different clients (domains). The API basically, sends json response to the clients. For instance, when the client app.anyclient.com sends a AJAX/post request to api.myapi.com/login …the API is able to validate and login the user; however, the session will not persist. So if I want to check if the session still active I always get a false response, as if the session was never imitated. The interesting thing is that if I send the same request from the same domain, I am able to get the true response.
I was wondering how you guys do it. I am not sure if this is a Laravel issue or just me not understanding how CORS works…any recommendations?