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 <daenney@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| 8617.feature | ||
| 8630.feature | ||
| 8731.misc | ||
| 8734.doc | ||
| 8744.bugfix | ||
| 8751.misc | ||
| 8754.misc | ||
| 8757.misc | ||
| 8758.misc | ||
| 8759.misc | ||
| 8760.misc | ||
| 8761.misc | ||
| 8765.misc | ||
| 8770.misc | ||
| 8771.doc | ||
| 8774.misc | ||
| 8776.bugfix | ||
| 8777.misc | ||
| 8793.doc | ||