Bug 126246 - EWS status JSON should include Access-Control-Allow-Origin
Summary: EWS status JSON should include Access-Control-Allow-Origin
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Alexey Proskuryakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-26 14:24 PST by Alexey Proskuryakov
Modified: 2014-01-02 10:51 PST (History)
2 users (show)

See Also:


Attachments
proposed patch (1.67 KB, patch)
2013-12-26 14:25 PST, Alexey Proskuryakov
rniwa: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2013-12-26 14:24:01 PST
Because we need to load it from build.webkit.org.
Comment 1 Alexey Proskuryakov 2013-12-26 14:25:25 PST
Created attachment 220036 [details]
proposed patch
Comment 2 WebKit Commit Bot 2013-12-26 14:26:46 PST
Attachment 220036 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Tools/ChangeLog', u'Tools/QueueStatusServer/app.yaml', u'Tools/QueueStatusServer/handlers/queuestatusjson.py', '--commit-queue']" exit_code: 1
ERROR: Tools/QueueStatusServer/handlers/queuestatusjson.py:76:  [QueueStatusJSON.get] Instance of 'QueueStatusJSON' has no 'response' member  [pylint/E1101] [5]
Total errors found: 1 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Ryosuke Niwa 2013-12-26 15:33:48 PST
Comment on attachment 220036 [details]
proposed patch

View in context: https://bugs.webkit.org/attachment.cgi?id=220036&action=review

> Tools/QueueStatusServer/handlers/queuestatusjson.py:76
> +        self.response.headers["Access-Control-Allow-Origin"] = "*"

Should we restrict this to webkit.org sub domains?
Comment 4 Alexey Proskuryakov 2013-12-26 18:00:13 PST
> Should we restrict this to webkit.org sub domains?

I don't see any reason to, and that would interfere with testing from staging servers (such as 127.0.0.1).
Comment 5 Alexey Proskuryakov 2014-01-02 10:50:56 PST
Committed in <http://trac.webkit.org/changeset/161098> a few days ago.