hupe13 / extensions-leaflet-map-github

WordPress Plugin Extensions for Leaflet Map - Github Version
GNU General Public License v2.0
13 stars 2 forks source link

CORS issues loading leaflet-plugins handlers from CDN #9

Closed thejeshgn closed 1 year ago

thejeshgn commented 1 year ago

All the JavaScript on my site are loaded from a CDN. So many leaflet-plugins which are loaded dynamically have CORS issues and don't load. For example

Should there be option to load inline?

hupe13 commented 1 year ago

When I submitted my plugin to WordPress, I was asked to

Please remove external dependencies from your plugin and, if possible, include all files within the plugin (that is not called remotely).

That's why they are included in the plugin.

hupe13 commented 1 year ago

What is the error message? Can you adapt the rules in server config or .htaccess?

thejeshgn commented 1 year ago

Thank you @hupe13

Let me try couple of things and get back to you with more details.

hupe13 commented 1 year ago

I close this. Feel free to come back, if the problem persists.