Last modified: 2012-12-25 17:24:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T45399, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43399 - Firefox OS app should not use PHP proxy
Firefox OS app should not use PHP proxy
Status: RESOLVED FIXED
Product: Wikipedia App
Classification: Unclassified
Generic (Other open bugs)
Unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-25 07:34 UTC by Brion Vibber
Modified: 2012-12-25 17:24 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: Firefox OS
Assignee Huggle Beta Tester: ---


Attachments

Description Brion Vibber 2012-12-25 07:34:10 UTC
The Firefox OS app uses a PHP proxy script to communicate with the Wikipedia API endpoint.

This is a bit sloppy, requires PHP on the hosting server, and may cause requests to go over an insecure channel if the app is not hosted on HTTPS.

Looks like there's a few potential ways around this:

* use JSONP for Wikipedia API hits -- should be enough for unauthenticated (should be easy, changes only to the app)

* change API's CORS headers to allow unauthenticated hits from anywhere (not sure how hard this would be or if it requires security review)

* switch from a hosted app to a packaged app and use 'system XHR' which allows cross-site unauthenticated requests (may make the app harder to test)
Comment 1 Brion Vibber 2012-12-25 17:24:16 UTC
[jsonp 46b63f0] * (bug 43399) Remove dependency on PHP proxy for Firefox OS

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links