potato4d / nuxt-basic-auth-module

Provide basic auth your Nuxt.js application
https://www.npmjs.com/package/nuxt-basic-auth-module
MIT License
311 stars 9 forks source link

Disable for proxy #221

Open nelhop opened 3 years ago

nelhop commented 3 years ago

When a proxy is used (i.e. with axios) the auth-module also restricts access to the proxy routes, which makes a api call impossible. Is there a way do disable the authentication for all proxy routes?

I tried it with regex (/^((?!api-route1|api-route2).)*$/) in the match option, but this seems not to work.