ENCODE fronts www.encodeproject.org with an AWS WAF that inspects the Origin of every request.
Approved origins (https://igv.org, https://aidenlab.org, …) are served. Everything else
that looks like a real browser gets a CAPTCHA challenge, returned with the misleading status
405 Method Not Allowed and the header x-amzn-waf-action: captcha.
localhost is not on the approved list and never will be, so no ENCODE-hosted track can be loaded by
any igv.js-based app running locally. This page reproduces that.
This page is currently served from origin .
https://igv.org, everything succeeds — that asymmetry is the whole bug.
access-control-allow-origin: * and, better still,
access-control-expose-headers: x-amzn-waf-action. So a fetch here can read both the 405
and the header naming the real cause — this is not a CORS failure, and the information needed to report
"the provider blocked us" instead of "405" is available in the browser.
| Host | Gated? | Result | Detail |
|---|
Three tracks are loaded below: two ENCODE-hosted bigWigs (from the Spacewalk session in the write-up) and one bigWig from a host that does not gate. Load errors are reported here and in the console.
| Track | Result | Detail |
|---|
curl is waved through by default because it does not claim to be a browser — which is why this
looks like a CORS problem at first. You have to send a browser User-Agent and a non-approved Origin
together to see the gate fire: