cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
Subject [jira] [Resolved] (CB-7348) [WKWebView] pages that are loaded using file:/// urls respect CORS
Date Fri, 07 Nov 2014 21:00:34 GMT


Shazron Abdullah resolved CB-7348.
    Resolution: Not a Problem
      Assignee: Shazron Abdullah

> [WKWebView] pages that are loaded using file:/// urls respect CORS
> ------------------------------------------------------------------
>                 Key: CB-7348
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: iOS
>         Environment: iOS 8
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
> Not a complaint but an advisory,  this is the opposite of what happens in a UIWebView,
where a page loaded locally is not restricted to CORS and can do whatever it wants. 
> Try xhr to a local server using:
> Note that it works with the wildcard of course. By default, file:// urls give the Origin:
header as null. 
> The only solution is, the destination server MUST return the header "Access-Control-Allow-Origin"
that matches the wildcard or "null".
> So what is the alternative? Run a local proxy. The PhoneGap Developer App does this transparently: by overriding

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message