[ad_1]
[ad_2]
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:
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