From 60d35739e14ee20b65f1fd1372c17a205ab8b96b Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Mon, 13 Jun 2022 18:03:05 +0200 Subject: [PATCH] add: css load with accept content header --- src/app/html-export.service.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/app/html-export.service.ts b/src/app/html-export.service.ts index e1560b1..340464b 100644 --- a/src/app/html-export.service.ts +++ b/src/app/html-export.service.ts @@ -51,7 +51,14 @@ export class HtmlExportService private loadCssFile(): void { let loadcss = this.httpclient.get("assets/htmlexport.css", - { responseType: 'text' }); + { + headers: + { + 'Accept': 'text/css', + 'Content-Type': 'text/css' + }, + responseType: 'text' + }); loadcss.subscribe((content: any) => { this.cssExportContent = content as string; }); } -- 2.39.5