[ 
https://issues.apache.org/jira/browse/CB-9329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14618217#comment-14618217
 ] 

Shazron Abdullah commented on CB-9329:
--------------------------------------

We need to:
1. Install the cordova-whitelist-plugin 
(https://github.com/apache/cordova-mobile-spec/blob/e96809046401243c4cfbea6272d7982f13b30008/createmobilespec/createmobilespec.js#L213)
2. Convert the <access> tags to <allow-navigation> tags to make the Whitelist 
tests pass.

However, there is a deficiency in the new whitelist plugin. Even though 
<access> tags in the docs are strongly discouraged, we don't say that it is not 
supported in the plugin, which it is not supported on iOS. We encourage people 
to use CSP which is great in the context of the webpage, but not native code.

The native code here is processed in CDVURLProtocol, which delegates to 
CDVViewController::shouldAllowRequestForURL, which will always return NO. This 
can be demonstrated in the FileTransfer plugin tests.

Not sure how this is to be handled, for native requests. We could bring back 
the <access> tag usage, but this is essentially the legacy whitelist plugin. If 
we do, it gets confusing since we have CSP and <access> tags, and we are 
actively discouraging usage of <access> (even though Android whitelist still 
uses it).

> cordova-ios medic tests are not getting test results
> ----------------------------------------------------
>
>                 Key: CB-9329
>                 URL: https://issues.apache.org/jira/browse/CB-9329
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Medic
>            Reporter: Shazron Abdullah
>              Labels: cordova-ios-4.0.x
>
> http://ci.apache.org/builders/cordova-ios/builds/21/steps/running-tests/logs/stdio
> Timed out. My guess is it's a whitelist/CSP thing.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to