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

Access-Control-Allow-Headers does not allow Range #156

Closed
nickdesaulniers opened this issue Jun 10, 2015 · 0 comments
Closed

Access-Control-Allow-Headers does not allow Range #156

nickdesaulniers opened this issue Jun 10, 2015 · 0 comments

Comments

@nickdesaulniers
Copy link
Contributor

Hi there, big fan of http-server. I'm trying to use it to serve content locally for testing MSE with DASH which makes heavy use of HTTP Byte Range Requests. It look like blink based browsers complain that "XMLHttpRequest cannot load http://localhost:8000/audio_128k.webm. Request header field Range is not allowed by Access-Control-Allow-Headers."

I run http-server with the --cors flag. The DASH libraries I'm testing both seem to send HTTP OPTIONS requests to the assets to check the response headers (preflight). It looks like http-server is responding with the following headers: "Access-Control-Allow-Headers:Origin, X-Requested-With, Content-Type, Accept"

So I think Range would have to be added to the list. I'm curious, is there a reason why not all headers are whitelisted with the asterisk as a value?

indexzero added a commit that referenced this issue Sep 22, 2015
Allow byte range requests over CORS Fixes #156
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