Hi Darshan,
I haven’t tried this header, but you should be able to incude it in the "start"
from a design document list function
https://docs.couchdb.org/en/stable/ddocs/ddocs.html#list-functions
by adding another property to the headers object:
start({
'headers': {
'Content-Type': 'text/html’
}
});
Johs
> On 2 Jul 2020, at 19:16, Joan Touzet <[email protected]> wrote:
>
> Best option: use a reverse proxy like haproxy or nginx to inject these. You
> can also terminate SSL at this layer for better SSL support and performance.
>
> -Joan
>
> On 02/07/2020 05:01, Mody, Darshan Arvindkumar (Darshan) wrote:
>> Hi
>> In our project we would like to set the header X-Content-Type-Options and
>> strict-transport-security whenever CouchDB responds to an request
>> How can we set the headers?
>> Thanks in advance
>> Regards
>> Darshan