Difference between allow-navigation and allow-intent

后端 未结 2 694
野趣味
野趣味 2021-02-18 23:09

Does any one know the difference between allow-navigation and allow-intent in cordova whitelist ?

2条回答
  •  南方客
    南方客 (楼主)
    2021-02-18 23:18

    per the documentation:

    allow-navigation

    Controls which URLs the WebView itself can be navigated to. Applies to top-level navigations only.

    allow-intent

    Controls which URLs the app is allowed to ask the system to open. By default, no external URLs are allowed.

    This whitelist worksheet should help.
    HOW TO apply the Cordova/Phonegap the whitelist system

提交回复
热议问题