From: Bastian Dehn Date: Mon, 13 Jun 2022 16:03:05 +0000 (+0200) Subject: add: css load with accept content header X-Git-Tag: v1.0.1^2~3 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=60d35739e14ee20b65f1fd1372c17a205ab8b96b;p=speisekarten-editor.git add: css load with accept content header --- 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; }); }