One way to do this is to use a request interceptor, such as ModHeader . It can be installed as an extension for Chrome, and it has the necessary ability to solve your problem.
So you need to follow this approach:
- Install the extension from the Chrome Web Store.
- Create a string by combining your username and password, for example, they are separated by a colon (
username:password ). Read Basic HTTP Authorization . - Base64 Encodes the string you just created.
- Open the ModHeader settings panel.
- In the Request Headers section , add a header with the name
Authorization and the value Basic encoded_string . Replace encoded_string with the string that you encoded in step 3. See the screenshot below. - Now you can receive your photos directly without preceding
username: password@ . This way your URL will look like http://example.com/snap .

Why does he solve the problem?
Basically what you did before passes the authorization data in the url itself. This is a common scenario, but obviously shows credentials and therefore is not a safe method.
Fortunately, this can also be done using the Authorization header. You just need to pass the credentials in encoded form. ModHeader does it for you. It intercepts every request of your browser and adds this header to it.
But be careful, it intercepts all requests. Therefore, it is recommended to use it only when retrieving photos from an IP camera. For all other situations, be sure to turn it off.
source share