• Resolved cezaro

    (@cezaro)


    Hello,
    Thanks for a great plugin.
    I use plugin version 1.4.0 because I have a problem with newer versions starting from 1.5. I spent the whole day on this, but I couldn’t solve the problem.

    The photos on my website are displayed from the subdomain images.example.com, and the website address is example.com. When the photos are displayed from the main domain, everything works, including the latest version 1.7.2. There is a problem when images are displayed from images.example.com.

    The following message is shown:

    • “the original image is too small…” and the image to crop is not shown

    The added photos are large. Greater than the image crop dimension. Php 7.4 and above. The latest version of wordpress.

    Is there any way to solve this problem?

    Regards, Cezary

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    This problem ist caused by a security policy that all browsers have to follow.
    An image from your subdomain has to send a header when it is requested from your main page in order to work properly (as the image is processed by Javascript).

    The images from your subdomain have to send an “access-control-allow-origin” header with your main domain. This can be done i.e. with an rule in your .htaccess file (if you are using the apache webserver).

    Thread Starter cezaro

    (@cezaro)

    Thank you, it works.
    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘It works from the main domain, it doesn’t work from the subdomain’ is closed to new replies.