Im trying to secure my rest backend by adding basic authentication to every call that can modify my data. In other words I want GET requests available to everyone, but secure POST, PUT and DELETE requests with basic auth. So I tried the following config, but that is not valid because a "auth_basic" is not allowd inside a "if". location /data/ {by Jarflux - How to...
![]() |
![]() |
![]() |
![]() |
|