Skip to content
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

Add restrictions to WP GraphQL endpoint #15

Open
benslv opened this issue Aug 10, 2021 · 1 comment
Open

Add restrictions to WP GraphQL endpoint #15

benslv opened this issue Aug 10, 2021 · 1 comment

Comments

@benslv
Copy link
Member

benslv commented Aug 10, 2021

Need to investigate if there's some way for us to limit which origins/URLs are allowed to request data from our WordPress database since, at the moment anybody anywhere could query the entire database for its articles and use them wherever they want, which is a bit iffy.

I think there's a setting in one of the plugins to restrict this, so it's worth taking a look. Another option could be to require a password which you include in the request body. Could then add this as an environment variable in GitHub Pages and use it at build time without it being exposed on the live site.

@benslv
Copy link
Member Author

benslv commented Aug 10, 2021

Here's a link to the documentation surrounding authenticating your requests: https://www.wpgraphql.com/docs/authentication-and-authorization/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant