Replies: 2 comments 1 reply
-
Hi, welcome! The main culprit would be either the domain name, or the session storage. Could you double-check in your browser that a session cookie is set? When you refresh the page is it changing? |
Beta Was this translation helpful? Give feedback.
-
So I was working on this last night with someone and managed to figure it out. When I wasn't setting any I finally decided to try hardcoding the Either way, once I hardcoded that, I was able to login and the CSRF / 419 Page Expired issues were gone. Thanks for everything you guys to for the community! |
Beta Was this translation helpful? Give feedback.
-
Description:
I am trying to convert my site from running on a single droplet to a serverless format; I believe I've got most of it done, but Laravel seems to be rejecting my CSRF token and I can't seem to figure out why. I don't necessarily believe this is a problem with bref, but rather trying to understand what is different between bref and not that might help me narrow down the problem, and not sure where else bref community members congregate.
Everything else about bref works great; I feel like this is the last major stumbling block before I can fully migrate to a fully serverless platform.
Things I've checked:
APP_KEY
environment variable that's being pulled down from the Parameter Store (I've currently got it set to a datatype of "String", just in case "SecureString" has some extra decryption step necessary to read and use it)file
, and if so, automatically change the config to use thecookie
driver, which should be fineSESSION_PATH
How to reproduce:
serverless.yml:
Beta Was this translation helpful? Give feedback.
All reactions