Closed
Bug 1143424
Opened 10 years ago
Closed 8 years ago
CORS error when using API with token via XHR
Categories
(Socorro :: Webapp, task)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: kairo, Unassigned)
Details
When trying to use the API with a token from XHR, I get the following CORS errors:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://crash-stats.mozilla.com/api/CrontabberState/. (Reason: missing token 'auth-token' in CORS header 'Access-Control-Allow-Headers' from CORS preflight channel).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://crash-stats.mozilla.com/api/CrontabberState/. (Reason: CORS request failed).
This can be tested via https://crash-analysis.mozilla.com/rkaiser/crash-report-tools/score/?token=foo (replace "foo" with your actual token)
Reporter | ||
Comment 1•10 years ago
|
||
The code exercising this is at https://hg.mozilla.org/users/kairo_kairo.at/crash-report-tools/file/7a37511ca90a/score/score.js#l200
Updated•10 years ago
|
Component: General → Webapp
Comment 2•8 years ago
|
||
curl -v https://crash-stats.mozilla.com/api/CrontabberState/
...
Access-Control-Allow-Origin: *
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•