illuspas / Node-Media-Server

A Node.js implementation of RTMP/HTTP-FLV/WS-FLV/HLS/DASH/MP4 Media Server
https://www.npmjs.com/package/node-media-server
MIT License
5.89k stars 1.51k forks source link

Admin fails when basic auth is part of the URL #586

Open nivhsay opened 1 year ago

nivhsay commented 1 year ago

When passing the basic auth as part of the URL,

For example, with http://admin:e10adc3949ba59abbe56e057f20f883e@localhost:9080/admin/

The following happens...

image

It seems that the API calls fail to start.

The browser fetch for api calls fail with "Failed to execute 'fetch' on 'Window': Request cannot be constructed from a URL that includes credentials: /api/server"

If you then remove the auth and open http://localhost:9080/admin/ again, it will work as the browser already knows the basic auth header for the host.

image

calvinti12 commented 8 months ago

What is the default password for admin?