oracle / cordova-plugin-wkwebview-file-xhr

Cordova Plugin for WebView File XHR
Universal Permissive License v1.0
139 stars 118 forks source link

Script in head do not load #38

Closed yoldar closed 4 years ago

yoldar commented 5 years ago

I have simple script tag in head

<script src="https://cdn.announcekit.app/widget.js"></script>

When I start app I got message "An error occurred trying to load the resource" in console.

Does anybody know how to fix it?

Thanks!

gvanmat commented 5 years ago

It sound like your cdn doesn't support cross origin requests. What type of error do you see on the J's console?

manish2788 commented 4 years ago

No response!! Closing the issue.

snehasis commented 2 years ago

It should load from CDN without any Issue. CDNs are used cross origins.

You can try adding this if not working