All of a sudden, referencing an external JS file is not working. I can’t tell if there is a setting in WordPress or a plugin that is causing the issue.

[ad_1]

We are pulling in content from a 3rd party and we’re using their widget. This is how we’re using the code:

<script src=”[https://www.3rd.com/widget/v1/abc123](https://www.3rdparty.com)”></script>

All of a sudden we’re now getting CORS errors. This is the error we get:

Access to script at ‘https://www.3rd.com/widget/v1/abc123’ from origin ‘https://www.mysite.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Any suggestions on how to fix this. I tried to adjust some settings in the headers and I’m not having any luck.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer