I'm running into a strange issue where I can view but not edit payload resources via the rest API.
POST /login succeeds.
All GET requests succeed.
But any other POST requests to modify resources fail (403 Forbidden).
By adding some debug logging in the read: and update: closures, I can see that the user object is present for GET requests, but undefined for POST requests.
By inspecting the headers, I see that the payload-token cookie is present for both GET and POST requests.
This issue is occurring identically when deploying to both Google Cloud Run and fly.io. The issue does not occur locally, even when running the same docker image as in production.
Any suggestions regarding how to continue debugging?
Thanks,
Oliver