Skip to content

How can protect API graphql #1492

Answered by jasonbahl
IRediTOTO asked this question in Q&A
Discussion options

You must be logged in to vote

There's a blog post here that proposes one option for this: https://www.wpgraphql.com/2019/01/30/preventing-unauthenticated-requests-to-your-wpgraphql-api/

You could also implement .htaccess (or similar) auth requiring a username/password for the endpoint itself, before WordPress execution even begins.

Something like suggested here: https://stackoverflow.com/questions/5229656/password-protecting-a-directory-and-all-of-its-subfolders-using-htaccess

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jasonbahl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants