Customers are confused, when a PDF results in a PDF viewer and when in a download event. We should explain how to workaround it in the relevant browsers.
To make it work out of the box the following changes are required:
- Chromium
- Firefox works
- WebKit works
Workaround for Chromium for now:
await page.route('**/empty.pdf', async route => {
const response = await route.fetch()
await route.fulfill({
response,
headers: {
...response.headers(),
'Content-Disposition': 'attachment',
}
});
});
Customers are confused, when a PDF results in a PDF viewer and when in a download event. We should explain how to workaround it in the relevant browsers.
To make it work out of the box the following changes are required:
Workaround for Chromium for now: