Skip to content

HTTP Basic auth with static route #24560

Answered by akellbl4
nebnes asked this question in Help
Discussion options

You must be logged in to vote

Hey,
Have you tried to protect the request to JSON as well? I mean when you go to a page via next/link it requests JSON for rendering and that JSON has the name of the page. You can try to add something like _next/.*/page.json$ where page is the name of the protected page.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nebnes
Comment options

Answer selected by nebnes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants