Closed Bug 1354787 Opened 9 years ago Closed 9 years ago

Enable CORS access on DXR

Categories

(Webtools Graveyard :: DXR, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: KWierso, Assigned: fubar)

References

Details

I'm trying to search DXR using the (undocumented, see bug 1193347) json api, with a URL like https://dxr.mozilla.org/mozilla-central/search?q=file:test_safe_browsing_initial_download.py&redirect=false and setting the Accept header to "application/json". Doing this, I see the following logged to the console: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://dxr.mozilla.org/mozilla-central/search?q=file:test_safe_browsing_initial_download.py&redirect=false. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Could we enable CORS access? At the moment, this is running on localhost:5000, but eventually I'd want it running on treeherder.mozilla.org.
Erik, if you have no objections I can set this via the load balancer.
Flags: needinfo?(erik)
Go ahead, Kendall.
Flags: needinfo?(erik)
Done! Wes, shout if you still have an issue.
Assignee: nobody → klibby
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.