Hi there
I hope that you are well.
I am trying to understand this section here https://github.com/bryntum/pdf-export-server/blob/main/docs/architecture.md#remote-web-server-remote-export-server
We need to set page origin. We can do it by providing clientUrl. It is a URL that puppeteer navigates to before replacing page content with our index.html. From server's point of view page is not a regular client which is browsing http://production.org/app
I am struggling to interpret a lot of the phrases but the most important
From server's point of view page is not a regular client
What does it mean that "a page is not a client"?
Let us say that I configure PdfExport.clientUrl = "https://production.com/pdf-export-client-url"
On this URL should my server:
- Do something regarding CORS or CSP?
- Return or redirect?
Lastly, is the above even needed? On the official scheduler export example, you do this
pdfExport : { exportServer: 'https://dev.bryntum.com:8082', }