11 Replies Latest reply on Jan 16, 2017 10:04 AM by stevew61732989

    Windows 10 App :Host Defined Policy: inline script. Resource will be blocked.

    ellings42951818 Level 1

      Hi

       

      I have an issue with scripts being blocked when starting the Windows 10 App build with PGB. The same App for Android and IOS works fine.

       

      CSP14312: Resource violated directive 'script-src ms-appx: 'unsafe-eval'' in Host Defined Policy: inline script. Resource will be blocked.

       

      What do I need to add in order to allow inline script and and prevent the blocking?

       

      In the config.xml I have tried to open for everything:

         <plugin name="cordova-plugin-whitelist" version="1" />

        <allow-navigation href="ms-appx:*" />

        <allow-navigation href="http://*/*" />

        <allow-navigation href="https://*/*" />

        <allow-navigation href="data:*" />

        <allow-intent href="ms-appx:*" />

        <allow-intent href="http://*/*" />

        <allow-intent href="https://*/*" />

        <allow-intent href="tel:*" />

        <allow-intent href="sms:*" />

        <allow-intent href="mailto:*" />

        <allow-intent href="geo:*" />

        <allow-intent href="*" />

         <access origin="*" subdomains="true"/>

       

      Br,

      Elling

       

      Message was edited by: Elling Skjetlein