Ask away

NEST component: AJAX request without whitelist

Marc 05/18/17 07:01

132 views

Question CategoryComponent,Properties,Form Event,Data Binding

Number of completed projects0

Question StatusUnsolved

  • nest component
  • AJAX
  • Whitelist

Question

I've been trying to make an ajax request component $.ajax({ type: "GET", dataType: "json", url: "http://testing.com/ws/check?" + outputData, success: onSuccess, error: onError }); But it fails with a 404 error, after a long search I found that I was missing the whitelist plugin but from what I've search Whitelist is only for Android and IOS, will windows work? and blackberry? is there a way to do this without adding whitelist? If the white list is really required why does it give me this error? Refused to apply inline style because it violates the following Content Security Policy directive: "default-src 'self' https:". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required to enable inline execution. Note also that 'style-src' was not explicitly set, so 'default-src' is used as a fallback.

Answers

1
Brian 05/22/17 11:45

Try to add the following to config file which is found in the directory. <access origin="*" /> <allow-intent href="http://*/*" /> <allow-intent href="https://*/*" />

Answer

Project

Image

Comment