Hi,
I have one OJS site accessible via two domains: domain.com
and domain.int
. In the config.inc.php
, the base_url
is set to domain.com
.
I’ve set up CORS to allow cross-origin access, but the built-in PDF viewer doesn’t work when accessed via domain.int
. In the browser console, I get this error:
Uncaught (in promise) Error: file origin does not match viewer's
at validateFileURL (app.js:1933:15)
at webViewerInitialized (app.js:1978:5)
Everything works fine when using domain.com
, but fails on domain.int
.
Is there a way to make the PDF viewer work when accessing the site via the secondary domain?
Thanks in advance!