JavaScript blocked by CORS policy
-
I am looking to use this plugin in conjunction with HTML Forms. When activated in self-hosted mode, the widget is failing to render on the form. The browser console lists the following error:
Access to script at 'https://cdn2.website.com/app/plugins/altcha-spam-protection/public/altcha.min.js?ver=1.4.0' from origin 'https://website.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
We use the plugin WP Offload Media to serve our js and css assets via CloudFront CDN, which is why the asset path is being rewritten from
https://website.com
tohttps://cdn2.website.com
. Despite having other plugins running we’ve not had any CORS issues with a plugin’s js assets until this one.The plugin is using all defaults except for the HTML Forms option, which is set to “Captcha”.
- You must be logged in to reply to this topic.