php -S 127.0.0.1:3000
ory proxy --port 4000
http://127.0.0.1:3000 https://test.knoxxa.digital
nginx with proxy_pass
http://127.0.0.1:4000/ (valid ssl certs and page loads without errors)
1. unable to get the "token" in the php (to logout)
2. unable to sign-in due to CRSF error:
An error occurred with the following message: Please retry the flow and optionally clear your cookies. The request was rejected to protect you from Cross-Site-Request-Forgery (CSRF) which could cause account takeover, leaking personal information, and other serious security issues.
3. get this error if logged out, on the php log, it then redirects to
https://test.knoxxa.digital/.ory/ui/login?flow=bdd4f395-0095-4fc4-87df-2116ab019765 then redirects to the following once i try to login:
http://127.0.0.1:4000/.ory/ui/error?id=b26ee970-b1ad-486d-a287-c565a6c64661
[Thu Jan 26 08
0806 2023] Exception when calling toSession: [401] Client error:
GET <http://localhost:4000/.ory/sessions/whoami>
resulted in a
401 Unauthorized
response:
{"error":{"code":401,"status":"Unauthorized","request":"ce03894d-0c02-97e1-8f6f-ecf2a1845b8e","reason":"No valid session (truncated...)