-
-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble with QL Session Handler #208
Comments
Update: I've combed through the client-side code and there doesn't seem to be anything wrong there. When reviewing the request/response data, it appears that woocommerce-session header isn't being passed back to the client (and therefore not being passed to localStorage). Instead, it looks like cookies are being set, which suggests the backend doesn't think this is a valid graphql request? Response Headers (Source) This is a standard Apollo client request via the codesandbox mentioned above. On the backend, I have not made any customizations, e.g. defining NO_QL_SESSION_HANDLER. |
Update: I was able to resolve this by resetting the entire backend and updating to the following plugin versions: WP GraphQL v0.5.1 (previously 0.4.2) |
Hi there,
I'm having some trouble implementing the QL Session Handler example as described in #88 in order to support persistent cart sessions for guest checkouts.
I have created a minimal sandbox environment to illustrate the problem here: https://codesandbox.io/s/crazy-hugle-sm1eb
Expected Behaviour:
Actual Behaviour:
Additional Notes:
Using the WP GraphiQL plugin to do this on my WP backend appears to work fine.
Any insights would be appreciated!
The text was updated successfully, but these errors were encountered: