[
https://issues.apache.org/jira/browse/CB-9009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14662465#comment-14662465
]
ASF GitHub Bot commented on CB-9009:
------------------------------------
Github user csantanapr commented on the pull request:
https://github.com/apache/cordova-app-hello-world/pull/10#issuecomment-128835312
@jengee you don't have to get tired of update the template every time, you
can implement a user land cordova hook after_prepare [1] [2]
you can have a simple nodejs script or any other type of script, and parse
the index.html after being copy to the platform/**/www/ and and check if csp is
missing the value that you want "http://localhost:8247" and added there.
having an arbitrary localhost port open in csp, present for a common
template will raise an eye brow of concerns for people using it in other
platforms than blackberry.
[1]
http://cordova.apache.org/docs/en/edge/guide_appdev_hooks_index.md.html#Hooks%20Guide
[2]
http://photokandy.tumblr.com/post/47426024187/cordova-cli-simple-hooks-and-merges
> default CSP needs to include 8472 for blackberry
> ------------------------------------------------
>
> Key: CB-9009
> URL: https://issues.apache.org/jira/browse/CB-9009
> Project: Apache Cordova
> Issue Type: Bug
> Components: App Hello World, Plugin Whitelist
> Affects Versions: 5.0.0
> Reporter: Josh Soref
> Assignee: Josh Soref
> Priority: Blocker
>
> These files:
> {code}
> ./cordova-js-src/exec.js
> ./framework/bootstrap/require.js
> ./framework/lib/utils.js
> ./javascript/cordova.blackberry10.js
> {code}
> all hard code 8472 as a magical port for cordova-blackberry apps
> (specifically it's used for the exec bridge).
> The current hello-world CSP prevents cordova-blackberry from working out of
> the box.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]