Edmunds Priede

Results 11 comments of Edmunds Priede

same issue, you need to be more clear about graphql settings

4:00:31 PM: [error] GraphQL Document Validation failed with 1 errors; 4:00:31 PM: Error 0: Cannot query field "success" on type "LogoutPayload". 4:00:31 PM: at /opt/build/repo/woonuxt_base/app/queries/logout.gql:3:5 4:00:31 PM: at executeCodegen (node_modules/@graphql-codegen/cli/esm/codegen.js:330:24)...

``` mutation MyQuery { logout (input: { clientMutationId: "" }) { clientMutationId status } } ``` this one works

> What plugin are you using? In the headless wp graphql login plugin if you enable the logout mutation. It should work just fine problem is with CORS plugin as...

with CORS it will deploy but fail on logon mutation

ok but without cors what do i need to do to deploy on vercel ? i get 403 forbidden now

but i need to set Block unauthorized domains to make it work , so i need to authorize deplyment domains

you need to detect origin header coming from your deployment and add it to allowed urls . localhost is for local testing. i managed t run frmo vercel and netlify.

it shoud be just the url value

can i see example in VR ? there is no VR button