bugzilla.mozilla.org has resumed normal operation. Attachments prior to 2014 will be unavailable for a few days. This is tracked in Bug 1475801.
Please report any other irregularities here.

Add CORs support to issue pages

RESOLVED WONTFIX

Status

()

bugzilla.mozilla.org
Infrastructure
RESOLVED WONTFIX
2 years ago
2 years ago

People

(Reporter: ebidel, Unassigned)

Tracking

Production

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
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)
(Reporter)

Comment 2

2 years ago
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
Last Resolved: 2 years ago
Flags: needinfo?(ebidel)
Resolution: --- → WONTFIX
(Reporter)

Comment 4

2 years ago
Thanks for the speedy replies!
You need to log in before you can comment on or make changes to this bug.