cancel
Showing results for 
Search instead for 
Did you mean: 

How to add Header in CAP Service Response?

rewatiraman_gds
Participant
0 Kudos

Hi Everyone,

I have a requirement where I need to add below Headers in CAP Service Response.

  • Content-Security-Policy
  • X-Content-type-options
  • Cache-Control
  • X-XSS-Protection

Please suggest !!!

Best Regards,

Rewati Raman

View Entire Topic
SebastianEsch
Active Participant
0 Kudos

Hi,

you can also avoid private APIs by using:

req.res.setHeader('header-name', 'header-value')

Kind regards,

Sebastian