Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
fetchBinaryRange - fails on Firefox and Safari #1186
fetchBinaryRange doesn't work on Firefox or Safari giving the following errors:
JBrowse version: 1.15.2
Just relaying what was said in the gitter chat, but the fact that this is an HTTP 401 error suggests maybe a server configuration issue.
I don't think that the jbrowse.org sample browser exhibits this issue even with firefox or safari so it is not an overarching issue on all deployments
@rbuels, so I've confirmed turning off the basic_auth ldap layer in nginx allows Firefox and Safari to work, however that doesn't explain why Chrome works fine with it on. I've just found chromium 66 also fails.
In Chrome I can see the header
I've used exactly the same URL in browsers, but for simplicity just shown the reference sequence track (fa + fa.fai). The flow fails when requesting the fai file using tenacious-fetch.
The nginx config is pretty simple for ldap basic auth:
If I add some AuthType Basic with an htpasswd and try opening with Safari I did see it fail with a 401
I dug a little bit into this and I saw a possible clue related to the fetch API, but I haven't validated it yet
"By default, fetch won't send or receive any cookies from the server, resulting in unauthenticated requests if the site relies on maintaining a user session (to send cookies, the credentials init option must be set).
I think that this patch should fix it but I can't manually confirm it haven't gotten yarn link to work yet