Google App Engine's Front Controller removes the cookies from the response header set by my Laravel Framework 8.83.4 / PHP 7.4 application.
Cookie's are being set properly when hosted locally. But, they are not set when I hosted it on Google's App Engine. So, Users can't persist the login session. *curl -i http://localhost:8000/login* *HTTP/1.1 200 OKHost: localhost:8000Date: Tue, 15 Mar 2022 02:58:10 GMTConnection: closeX-Powered-By: PHP/7.4.13Content-Type: text/html; charset=UTF-8Cache-Control: no-cache, privateDate: Tue, 15 Mar 2022 02:58:09 GMTSet-Cookie: XSRF-TOKEN=ey<Some Cookie Hash>jIiwidGFnIjoiIn0%3D; expires=Tue, 15-Mar-2022 04:58:09 GMT; Max-Age=7199; path=/; samesite=laxSet-Cookie: laravel_session=ey<Some Cookie Hash>0IiwidGFnIjoiIn0%3D; expires=Tue, 15-Mar-2022 04:58:09 GMT; Max-Age=7199; path=/; httponly; samesite=lax* *curl -i < App Engine Hosted application URL >* *HTTP/1.1 200 OKContent-Type: text/html; charset=UTF-8Vary: Accept-EncodingX-Cloud-Trace-Context: 059b8f86bf1606e70b01890a017f1b61;o=1Date: Tue, 15 Mar 2022 02:56:57 GMTServer: Google FrontendContent-Length: 10005Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"* Here is the snip of *index.php*. I tried dumping the response (Commented below). My application is properly adding cookie to the response header. But, front controller removes it I think. *Index.php* *$app = require_once __DIR__.'/../bootstrap/app.php';$kernel = $app->make(Kernel::class);$response = $kernel->handle( $request = Request::capture());// dd($response); // Response contains cookie. Headers are similar to the locally hosted app.$response->send(); // Response doesn't contain cookie. Front controller is removing the cookie I think.$kernel->terminate($request, $response);* Some people have discussed to set the cookie at the top of each and every HTML page. But, that is not convenient and scalable for us. If using our own php server instead of Google App Engine's Front Controller is the solution, Let me know the correct way to set *entrypoint* in *app.yaml* Please guide me to the correct way to resolve this issue. Thanks. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/e12fa6fe-dab7-4645-aeb8-d97566da618an%40googlegroups.com.