A WordPress plugin that provides Headless login and authentication for WPGraphQL, supporting traditional passwords, OAuth2/OpenID Connect, JWT, and more.
Coverage: 60.564% (+0.1%) from 60.467% when pulling d6008f21d66e55ac5f4d22bcc4be72d5c2a3f480 on justlevine:dev/access-control-fixes into 354bfb82fcb67e65131209ccc93117fdb10587df on AxeWP:develop.
What
This PR refines #45 by refactoring the way the request headers are sent.
Specifically:
Vary: Origin
header is now set if there are multiple possible allowed origins for the request.X-WPGraphQL-Login-Token
is now included inAccess-Control-Allow-Headers
and excluded fromAccess-Control-Expose-Headers
.X-WPGraphQL-Login-Refresh-Token
is now only included inAccess-Control-Expose-Headers
if a valid refresh token is returned in the response.Why
How
Testing Instructions
Additional Info
Checklist: