[]
type OpenParameters = object & DocumentInitParameters;
Open parameters.
optional headers: object;
Authentication headers.
[header: string]: string
optional password: string;
For decrypting password-protected PDFs.
optional withCredentials: boolean;
Indicates whether or not
cross-site Access-Control requests should be made using credentials such
as cookies or authorization headers. The default is false
.
withCredentials makes the browser include cookies and authentication headers in the XHR request.
If your service depends on any cookie (including session cookies), it will only work with this option set.