---
schema_version: "1"
id: 98b6e3c1c262a9af2f8315ae3575eab41603dc018e9e33dc866866f6dfbb0ec3
title: SetResponseHeader
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_platformClientBrowserSetResponseHeader.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_platformClientBrowserSetResponseHeader.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: c0894be82451c97e2e2b47264bacffe37f6edcae88e4c59652d15a6993663c7a
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# SetResponseHeader

## Overview

Sets the value of the specified platform or HTTP Response header

### Syntax

SetResponseHeader(1, 2)

### Function Properties

<!--complex table-->

| Ordinal | Type   |              | Description             |
| ------- | ------ | ------------ | ----------------------- |
| **1**   | string | **Required** | Name of response header |
| **2**   | string | **Required** | Response header value   |

## Example

```
<script runat=server>
     Platform.Response.SetResponseHeader("headerName","headerValue");
</script>
```
