• Resolved alve39

    (@alve39)


    I cannot embed file from external domain. Error messages are

    PDF.js v1.9.426 (build: 2558a58d)
    Message: file origin does not match viewer’s

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kevin Bazira

    (@kevinbazira)

    Hi @alve39,

    Thank you for your interest in the Algori PDF Viewer plugin.

    The error you shared is usually caused by Cross-Origin Resource Sharing (CORS) issues.

    Please use one of the two solutions below;

    1. Either upload the PDF to your domain and use the PDF viewer from this same domain.

    2. Or adjust your HTTP Headers and give your domain permission to access resources from the other domain that currently hosts the PDF.

    Hope this helps.

    Cheers!

    Thread Starter alve39

    (@alve39)

    Hi Kevin thanks for your answer. So, the second solution requires me to add

    Access-Control-Allow-Origin: https://example.com:8080

    to my htaccess file?

    Thread Starter alve39

    (@alve39)

    Kevin, I’m not sure how to resolve the problem. You see the problem occurs only when I turn on the bunny CDN plugin. If I disable it, everything works fine.

    Thanks and good day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot embed file from external domain’ is closed to new replies.