CORS not working for images in wp-content/uploads folders

[ad_1]

Hello @rogerskk,

Thank you for reaching out. 

I believe the plugin has successfully enabled CORS. You can verify this by using the test link. If you want to check whether an image is shared or not, you can do so using this test.

The CORS error you’re encountering is due to the origin motiontees.com being added. You can think of the origin as the website domain. So, you’re sending store.motiontees.com from the cors-test.codehappy.dev domain. and your settings allowed motiontees.com

The root domain and API are passed because the plugin has added a temporary server configuration to bypass your main server configuration. This allows requests that have a specific extension like .jpg, .mp4, etc., as per your settings. and root or API URL does not have any extensions.

Another test you could perform involves disabling all other plugins, leaving only this one active. Then, observe how it performs. According to this thread, the issue seems to have been caused by another plugin.

If the issue persists, it’s possible that your ASP.NET server doesn’t allow temporary server configurations. In this case, you’ll need to modify your server’s configuration settings for images.

Let me know if you need help with anything else! 😊

FYI: I’m marking this issue as resolved for now. However, feel free to add more replies to this thread at any time. I’ll respond as soon as I can, based on my availability, and assist with any further questions you may have.

 

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