single-spa / import-map-deployer

A manifest deployment service for sofe/import maps
Apache License 2.0
191 stars 63 forks source link

How make an HTTP request with curl or http when `username` and `password` was set? #129

Closed vctqs1 closed 2 years ago

vctqs1 commented 2 years ago

Hello, I'm doing some experiment with Dockerfile and setting HTTP_USERNAME and HTTP_PASSWORD

but I will fail when I call at normally (like docs)

vctqs1$ http :5000/enviroments
HTTP/1.1 401 Unauthorized
Connection: keep-alive
Content-Length: 0
Date: Wed, 09 Feb 2022 10:52:03 GMT
Keep-Alive: timeout=5
WWW-Authenticate: Basic realm="sofe-deplanifester"
X-Powered-By: Express
vctqs1 commented 2 years ago

sorry I get confused -a username:password will help

http -a username:password :5000/environments