Sohan Kumar Dash
04/11/2023, 4:32 PMeminero
04/11/2023, 4:39 PMsuitedev
04/12/2023, 3:28 AMChris
04/12/2023, 10:49 PMsuitedev
04/12/2023, 11:03 PMSohan Kumar Dash
04/13/2023, 3:25 AMChris
04/13/2023, 4:37 PMChris
04/13/2023, 4:38 PMaddHeader(name, value) Adds a header to the response. If this header has already been set, this will add a new header to the response. Note that all user-defined headers must be prefixed with *Custom-Header* otherwise an SSS_INVALID_ARG error will be thrown ()
Chris
04/13/2023, 4:39 PMCustom-Header
name even though it's not documented.suitedev
04/14/2023, 6:34 AM// Add CORS Headers
context.response.addHeader({
name:'Access-Control-Allow-Origin',
value: '<https://someawesomedomain.com>'
});
context.response.addHeader({
name:'Vary',
value: 'Origin'
});
context.response.addHeader({
name:'Content-Type',
value: 'application/json'
});
Chris
06/15/2023, 9:00 PM