OpaqueResponseBlocking

[ad_1]

I'm trying to host images on my WordPress because I need the file URLs to use them in emails for a ticketing platform (XTruLink). However, when I try to do this I get an error. It seems like my site is blocking when linked to from another site. Does anyone know how to whitelist a specific domain from this kind of blocking? It's happening for all images on my site:

https://preview.redd.it/e6l9amthhgid1.png?width=720&format=png&auto=webp&s=d4e8a18b2336bcb8bf103d4209f9ef2fbe53fece

[ad_2]
1 Comment
  1. Hi,

    First, you might need to allow XTruLink to access your images. Go to your WordPress dashboard, then head to Settings and look for Security. Find the section for OpaqueResponseBlocking and add XTruLink’s domain to the list of “Whitelisted Domains.” Don’t forget to save your changes.

    Next, you can try editing the .htaccess file to make sure your site isn’t blocking the images. Use FTP or your hosting provider’s file manager to find the .htaccess file in your site’s root directory. Open it with a text editor and add these lines:

    arduinoCopy code<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin “https://www.xtrulink.com”
    </IfModule>

    Make sure to replace “[https://www.xtrulink.com](https://www.xtrulink.com)” with the correct XTruLink domain. Save the file after making the changes.

    After that, clear your browser cache to make sure you’re not seeing old versions of the images. If you use a CDN, clear its cache too. Then, check if you can open the image URLs directly in your browser to see if they work.

    I hope it helps you

    Thanks

 

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