Yes, it all depends on your definition of “long term” in your project in relation to your estimation of the arrival of 4.0 j:)
> On 3 Jul 2020, at 08:29, Mody, Darshan Arvindkumar (Darshan) > <[email protected]> wrote: > > Thanks but the function list are marked deprecated so it would not be long > term solution > > Thanks > Darshan > > -----Original Message----- > From: Johs Ensby <[email protected]> > Sent: Friday, July 3, 2020 11:58 AM > To: [email protected] > Subject: Re: X-Content-Type-Options and strict-transport-security > > 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://urldefense.proofpoint.com/v2/url?u=https-3A__docs.couchdb.org_en_stable_ddocs_ddocs.html-23list-2Dfunctions&d=DwIFaQ&c=y9ER7-XqJ9hjToafeR_J2A&r=S5XCSUlKVMQnuk_7mcQPRb60k2jCtEkdUnBdEKc48sQ&m=1jvYNfegFGWY8D2DSlzSvrgGYaDBLzKbWJpIkhDo_vc&s=UHloQxGYL_Qeobx4x_hjfZw1XC-JCs4KJ_0ube8Juy4&e= > 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 > ……………………………………… Johannes Ensby Business to Web AS Tollbugata 8, N- 0152 Oslo, Norway +47 611 00 006 (mobile) +47 611 00 700 (switchboard) [email protected] www.linkedin.com/in/ensby www.b2w.com
