1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

CSP blocking to open a pdf using blob

Discussão em 'Angular' iniciado por Josephvinoth, Setembro 16, 2024.

  1. Josephvinoth

    Josephvinoth Guest

    Am showing a pdf in new tab like below

    I have enabled CSP in my application, the pdf is broken in new tab due to inline style.

    this.pdfService.downloadPdf(this.id).subscribe((data: Blob) => {
    let fileURL = window.URL.createObjectURL(data);
    window.open(fileURL);
    });`````

    Continue reading...

Compartilhe esta Página