-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[gatsby-source-wordpress] Fetch protected endpoints #3063
Comments
What I Think I KnowHi, @ivorpad. I'm going to make the assumption that you're not hosting on WPCOM, and that you don't have the Basic Auth Handler plugin installed on your WP instance. Once you install that and fill in your If you enable this plugin, you'll need to always provide the current authentication to your Gatsby config file, or else the What I Don't UnderstandThe README on the Basic Auth Handler says
I'm not quite sure what they mean, because I'm still able to access unprotected How I'm Using This
|
Thanks @benforshey, I will definitely try this. |
Hey, @ivorpad. How did this end up working for you? |
Due to the high volume of issues, we're closing out older ones without recent activity. Please open a new issue if you need help! |
Hi first of all thanks for GatsbyJS!
I'm looking into the
auth
option log into WordPress and query protected endpoints like/wp-json/wp/v2/users/me
but I just can't wrap my head around it.Unfortunately the comment is confusing:
If auth.user and auth.pass are filled, then the source plugin will be allowed to access endpoints that are protected with .htaccess.
Any help will be appreciated.
The text was updated successfully, but these errors were encountered: