Closed Bug 961084 Opened 10 years ago Closed 10 years ago

Basket should set CORS headers

Categories

(www.mozilla.org :: Newsletters, defect)

Production
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: pmac, Unassigned)

Details

(Whiteboard: [kb=1244046] )

Attachments

(1 file)

41 bytes, text/x-github-pull-request
jgmize
: feedback+
Details | Review
Adding CORS headers (Access-Control-Allow-Origin: *) would allow for using the basket API from client-side scripts on websites. It would therefore also allow for using XHR to do basket subscriptions from withing an unprivileged app on FxOS.
Whiteboard: [kb=1244046]
Attached file pull request
Attachment #8376297 - Flags: review?(jmize)
Attachment #8376297 - Flags: feedback+
Commits pushed to master at https://github.com/mozilla/basket

https://github.com/mozilla/basket/commit/f5df1b58da772962dccf5bfce14a767ec79eb63f
Bug 961084: Enable CORS support.

* Add django-cors-headers lib.
* Allow all origins to use the API.

https://github.com/mozilla/basket/commit/6182a3d47edc3ce3023957bd277d64c5f8bc6ed2
Merge pull request #91 from pmclanahan/add-cors-support-961084

Bug 961084: Enable CORS support.
Attachment #8376297 - Flags: review?(jmize)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: