Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upCORS settings for IIS 10 #1579
Closed
CORS settings for IIS 10 #1579
Comments
This comment has been minimized.
This comment has been minimized.
|
You might want to try using the version of webtorrent hosted on the latest jsdelivr URL: https://cdn.jsdelivr.net/npm/webtorrent@latest/webtorrent.min.js There is another deprecated URL that no longer updates and is stuck on 0.98.18 of WebTorrent. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of WebTorrent?
Last version from Webtorrent CDN
What operating system and Node.js version?
Windows Server 2016 (IIS 10)
What browser and version? (if using WebTorrent in the browser)
Firefox, Safari, Chrome and Edge
What did you expect to happen?
Expected to stream a .mp4 video within html5 player ; Video only loads on google chrome.
What actually happened?
I suspect a server misconfiguration for the cross origin resource sharing. The video plays after a couple of seconds on chrome, but will load forever with Firefox, Safari or Microsoft Edge. No error is displayed in the console though.
Right now the
Range, Content-Typeheaders are allowed, theGET, POST, HEAD, OPTIONSmethods, and everything (*) for theAccess-Control-Allow-Origin.The web.config file which enable CORS on IIS 10 looks like this :
I don't know what I am missing. I use a webseed (ws) and exact seed (xs), and once the video has begun on chrome, I am able to also play it on firefox !
This is not a webtorrent issue it's mine and I am not an expert. But please, can you help me to sort this out for IIS 10 ?
Regards,