Skip to content

chore: wp-env backport for next-pages-apollo-authentication #112

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

Closed
colinmurphy opened this issue Mar 24, 2025 · 3 comments · Fixed by #138
Closed

chore: wp-env backport for next-pages-apollo-authentication #112

colinmurphy opened this issue Mar 24, 2025 · 3 comments · Fixed by #138
Assignees

Comments

@colinmurphy
Copy link
Member

See #109

  1. Setup wp-env for next-pages-apollo-authentication
  2. Move example into next directory as per Add an additional directory level for examples (next/, nuxt/, astro/) #89
@github-project-automation github-project-automation bot moved this to 🆕 Backlog in Headless OSS Mar 24, 2025
@colinmurphy colinmurphy moved this from 🆕 Backlog to 🔖 Ready for Development in Headless OSS Mar 25, 2025
@colinmurphy colinmurphy changed the title chore: wp-env setup for next-pages-apollo-authentication chore: wp-env backport for next-pages-apollo-authentication Mar 27, 2025
@ahuseyn ahuseyn self-assigned this Apr 2, 2025
@ahuseyn
Copy link
Member

ahuseyn commented Apr 3, 2025

Access-Control-Allow-Origin header is being overridden by the wp-graphql-headless-login plugin when making requests from localhost:3000, causing CORS errors. It's happening only with wp-env, not with Local. Disabling wp-graphql-headless-login solves the issue. Setting Additional authorized domains in Access Control tab seems to have no effect either. Needs further investigation.

Work branch and directory: https://github.com/wpengine/hwptoolkit/tree/wp-env-backport-nextjs-apollo-authentication/examples/next/apollo-authentication

Image
Image
Image

@ahuseyn ahuseyn assigned ahuseyn and unassigned ahuseyn Apr 3, 2025
@ahuseyn ahuseyn moved this from 🔖 Ready for Development to 🏗 In progress in Headless OSS Apr 9, 2025
@ahuseyn ahuseyn linked a pull request Apr 9, 2025 that will close this issue
9 tasks
@ahuseyn ahuseyn moved this from 🏗 In progress to 👀 In review in Headless OSS Apr 9, 2025
@ahuseyn
Copy link
Member

ahuseyn commented Apr 9, 2025

Related issue: AxeWP/wp-graphql-headless-login#169

@ahuseyn
Copy link
Member

ahuseyn commented Apr 9, 2025

PR: #138

@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Closed in Headless OSS Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants