This sample shows how to serve WebViewer's lib from a different domain. This project implements Cross-Origin Resource Sharing (CORS) as a client server webviewer-app
that fetches resources from a server webviewer-lib
in another domain. The dependency reference to @pdftron/webviewer
exists in both webviewer-lib\package.json
and webviewer-app\package.json
.
It is recommended to serve the WebViewer lib on the same domain as the app itself for additional performance and security.
WebViewer provides a slick out-of-the-box responsive UI that enables you to view, annotate and manipulate PDFs and other document types inside any web project.
Click the button below to view the full project in GitHub.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales