You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.
The API currently uses the `Access-Control-Allow-Origin` header, but not
the `Access-Control-Allow-Headers` header. This leads to CORS errors
when using Safari, which sends the `Accept-Encoding` header with its
`OPTIONS` requests. Rather than allowing the `Accept-Encoding` header,
this patch switches to Flask-CORS for CORS configuration, which has
better defaults and is easier to configure than settings CORS headers
manually.
[Resolvesfecgov/openFEC-web-app#462]
https://fec-dev-web.18f.gov/candidates?cycle=2012&cycle=2014&cycle=2016
Tried on :
Version 7.1.5 (9537.85.14.17)
Version 8.0.7 (10600.7.12)
[Error] XMLHttpRequest cannot load https://fec-dev-api.18f.gov/v1/candidates/?per_page=30&page=1&api_key=&cycle=2012&cycle=2014&cycle=2016&sort_hide_null=true&sort=name. Request header field Accept-Encoding is not allowed by Access-Control-Allow-Headers. (candidates, line 0)
h/t to Noah for digging into the js errors.
The text was updated successfully, but these errors were encountered: