Closed Bug 1304495 Opened 8 years ago Closed 8 years ago

Add CORs support to issue pages

Categories

(bugzilla.mozilla.org :: Infrastructure, defect)

Production
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: ebidel, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36

Steps to reproduce:

Mozilla's issue tracker does not support CORs on issue pages (e.g. https://bugzilla.mozilla.org/show_bug.cgi?id=1302779). It would be nice if it did
so client-side applications like https://browser-issue-tracker-search.appspot.com/ can query issues directly and fetch page content.

As a data point, Webkit has supported CORS for a long time on bugs.webkit.org. Chrome's issue tracker is considering it.
(In reply to ebidel from comment #0)
> User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6)
> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
> 
> Steps to reproduce:
> 
> Mozilla's issue tracker does not support CORs on issue pages (e.g.
> https://bugzilla.mozilla.org/show_bug.cgi?id=1302779). It would be nice if
> it did
> so client-side applications like
> https://browser-issue-tracker-search.appspot.com/ can query issues directly
> and fetch page content.
> 
> As a data point, Webkit has supported CORS for a long time on
> bugs.webkit.org. Chrome's issue tracker is considering it.

We have CORS enabled for our REST API which can be used to query bugs and load bug content. I am not able to enable CORS sitewide for our normal UI pages. For information about our REST API, you can see: https://bmo.readthedocs.io/en/latest/api/index.html

Will this accomplish what you are asking?

dkl
Flags: needinfo?(ebidel)
Actually an API is great. It doesn't require authentication, correct?
(In reply to ebidel from comment #2)
> Actually an API is great. It doesn't require authentication, correct?

It works without authentication for public bugs yes. Secure bugs will require an API key to be created 
for the account accessing the private bugs. https://bugzilla.mozilla.org/userprefs.cgi?tab=apikey

Let us know if you need any assistance in #bmo on irc.mozilla.org.

dkl
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(ebidel)
Resolution: --- → WONTFIX
Thanks for the speedy replies!
You need to log in before you can comment on or make changes to this bug.