Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content Security Policy (CSP) issue on some players after hosting on Azure VM #4000

Open
huxaiphaer opened this issue Dec 1, 2024 · 0 comments

Comments

@huxaiphaer
Copy link

Which version are you using?

mediamtx:latest

Which operating system are you using?

Windows amd64 standard

Describe how to replicate the issue

Am facing a CSP issue while running the .m3u8 in some players, but vlc works very well.

Below are the logs am facing, and the online player you could test with is :
https://castr.com/hlsplayer/

Logs

Refused to connect to '<URL>' because it violates the following Content Security Policy directive: "connect-src 'self' https://* http://* wss://*".
fs.js:4 player ready
fs.js:4 hls
hook.js:608 
Object
fs.js:4 haserror
fs.js:4 destroyed
hlsplayer/:1 Error handling response: TypeError: Cannot read properties of undefined (reading 'status')
    at chrome-extension://ijejnggjjphlenbhmjhhgcdpehhacaal/js/video-recorder-content.js:27:29196
hlsplayer/:1 Unchecked runtime.lastError: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
hlsplayer/:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
632
Chrome is moving towards a new experience that allows users to choose to browse without third-party cookies.
fs.js:4 3
fs.js:4 https://live.pixsar.io:8888/stream/index.m3u8
fs.js:4 destroyed
fs.js:4 hls
fs.js:4 https://live.pixsar.io:8888/stream/index.m3u8
fs.js:4 player ready
fs.js:4 hls
fs.js:4 
{type: 'networkError', details: 'manifestLoadError', fatal: true, url: 'https://live.pixsar.io:8888/stream/index.m3u8', loader: t, …}
context
: 
{id: null, groupId: null, level: 0, responseType: 'text', type: 'manifest', …}
details
: 
"manifestLoadError"
fatal
: 
true
loader
: 
t {xhrSetup: undefined, requestTimeout: 1440, retryTimeout: 1437, retryDelay: 4000, config: {…}, …}
networkDetails
: 
XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, …}
response
: 
{code: 0, text: ''}
type
: 
"networkError"
url
: 
"https://live.pixsar.io:8888/stream/index.m3u8"
[[Prototype]]
: 
Object

fs.js:4 haserror
fs.js:4 destroyed


Server logs

No server logs, Just attached the player logs

Network dump

No response

@huxaiphaer huxaiphaer changed the title Am facing a CSP issue on some players after hosting on Azure VM CSP issue on some players after hosting on Azure VM Dec 1, 2024
@huxaiphaer huxaiphaer changed the title CSP issue on some players after hosting on Azure VM Content Security Policy (CSP) issue on some players after hosting on Azure VM Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant