Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/forward-client-ip.md

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @monetizationos/proxy

## 1.5.2

### Patch Changes

- [#30](https://github.com/MonetizationOS/mos-proxy/pull/30) [`9a48c30`](https://github.com/MonetizationOS/mos-proxy/commit/9a48c302d3f6a0a6f70f7b0023666cd8e5166597) Thanks [@filipe-boleto](https://github.com/filipe-boleto)! - Add `MOSProxyBuilder.withClientIP((request) => ...)` so each CDN runtime supplies the end-user IP for MOS API requests as `http.clientIP`. Applies to surface-decisions and authenticated `/mos-api/*` routes.

## 1.5.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@monetizationos/proxy",
"version": "1.5.1",
"version": "1.5.2",
"description": "Platform-agnostic MonetizationOS proxy core",
"license": "MIT",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/apiRequestHeaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { formatClientRuntimeHeader } from './clientRuntime'

export const MOS_PROXY_VERSION_HEADER = 'X-MOS-Proxy-Version'
export const MOS_PROXY_CLIENT_HEADER = 'X-MOS-Proxy-Client'
export const MOS_PROXY_PACKAGE_VERSION = '1.5.1'
export const MOS_PROXY_PACKAGE_VERSION = '1.5.2'

export const setMosProxyHeaders = (headers: Headers): void => {
headers.set(MOS_PROXY_VERSION_HEADER, MOS_PROXY_PACKAGE_VERSION)
Expand Down