PDFViewer with Accept-Language header on file request

1 Answer 21 Views
Globalization PDFViewer
Javier
Top achievements
Rank 1
Iron
Javier asked on 07 Jun 2022, 04:48 PM | edited on 07 Jun 2022, 04:48 PM

I'm using the following code to implement kendo pdf viewer on my project:

pdfViewer = $("#pdfViewer").kendoPDFViewer({
    pdfjsProcessing: {
        file: {
            url: url,
            httpHeaders: {
                authorization: token
            }
    }
...
}).getKendoPDFViewer();

Is there a way to include the Accept-Language header on the http request?

 

 

 

1 Answer, 1 is accepted

Sort by
0
Javier
Top achievements
Rank 1
Iron
answered on 07 Jun 2022, 05:21 PM | edited on 07 Jun 2022, 05:22 PM

I'll answer myself: Just add  "accept-language": language

I tried this before without success but I found it was due to some caching issues.

Tags
Globalization PDFViewer
Asked by
Javier
Top achievements
Rank 1
Iron
Answers by
Javier
Top achievements
Rank 1
Iron
Share this question
or