Visual Code and Openhab 3.0

Thank you!
I solved my problem using your hints:
I added a second locaton in my nginx config:

location /rest/ {
proxy_pass http://localhost:8080/rest/;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Authorization “Basic base64 encoded name:password”;
}

So VSCode can use the credentials for nginx authentication and nginx send base64 encoded openhab credentials