CodeIgniter Forums
ci4 Cross Origin Sessions - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: ci4 Cross Origin Sessions (/showthread.php?tid=79968)



ci4 Cross Origin Sessions - megasteve - 08-25-2021

Hello there, I'm having some trouble with sessions. I have a internal api to for using single page application. I have controller for authacating user, It's launches new session when user logged-in. So here is the problem; user logs-in, new session launches, client tries to get request to some url and boom 401. Problem is everytime user logs-in new session launching. Domain of api is .local domain. client is sending request from 127.0.0.1. It's will be not a big problem but still makes hard to test. I hope I can explained good enough