From 8ca120df7c2964c73390dbfab9ceba03f76eadfe Mon Sep 17 00:00:00 2001 From: Daniele Sluijters Date: Mon, 23 Nov 2020 14:01:18 +0100 Subject: INSTALL: Fix setting content-type on well-known (#8793) When using `add_header` nginx will literally add a header. If a `content-type` header is already configured (for example through a server wide default), this means we end up with 2 content-type headers, like so: ``` content-type: text/html content-type: application/json access-control-allow-origin: * ``` That doesn't make sense. Instead, we want the content type of that block to only be `application/json` which we can achieve using `default_type` instead. Signed-off-by: Daniele Sluijters --- changelog.d/8793.doc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/8793.doc (limited to 'changelog.d') diff --git a/changelog.d/8793.doc b/changelog.d/8793.doc new file mode 100644 index 0000000000..f6eee1ea73 --- /dev/null +++ b/changelog.d/8793.doc @@ -0,0 +1 @@ +Fix the example on how to set the `Content-Type` header in nginx for the Client Well-Known URI. -- cgit 1.4.1