Skip to content

Commit 400d1d0

Browse files
Update changelog
1 parent d8f99ae commit 400d1d0

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

docs/change-log/2024-07-17-activities-proxy-csp-update.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
title: "Activities Proxy CSP Update"
33
date: "2024-07-17"
44
breaking: true
5+
topics:
6+
- "Activities"
7+
- "Embedded App SDK"
58
---
69

710
:::warn

docs/change-log/2025-07-30-remove-proxy-from-discord-activity-proxy-path.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,46 +6,40 @@ topics:
66
- "Embedded App SDK"
77
---
88

9-
## Overview
10-
119
We've updated the Content Security Policy (CSP) for Discord Activities to remove the `.proxy/` path requirement when making requests through the discordsays.com proxy. This change simplifies the developer experience while maintaining full backwards compatibility. This was made possible by resolving the underlying privacy considerations that originally required the `.proxy/` path restriction.
1210

13-
## What Changed
14-
15-
### Before
11+
#### Before
1612

1713
Activities were required to make proxy requests through paths prefixed with `/.proxy/`:
1814

1915
```
2016
https://<app_id>.discordsays.com/.proxy/api/endpoint
2117
```
2218

23-
### After
19+
#### After
2420

25-
Activities can now make proxy requests directly without the `.proxy/` prefix:
21+
Activities can now make proxy requests directly without the `/.proxy/` prefix:
2622

2723
```
2824
https://<app_id>.discordsays.com/api/endpoint
2925
```
3026

31-
## Technical Details
27+
#### Technical Details
3228

3329
- **CSP Update**: The Content Security Policy now allows requests to `https://<app_id>.discordsays.com/*` instead of the more restrictive `https://<app_id>.discordsays.com/.proxy/*`
3430
- **Proxy Behavior**: Both URL patterns work identically - your existing proxy mappings (e.g., `/api -> example.com`) will function the same way regardless of whether you use `/.proxy/api` or `/api`
3531
- **Performance**: No performance differences between the two approaches
3632

37-
## Developer Tooling Updates
33+
#### Developer Tooling Updates
3834

3935
The `patchUrlMappings` utility will be updated in an upcoming Embedded App SDK release to generate the simplified URLs by default, though it will continue to support the `.proxy/` format for backward compatibility.
4036

41-
## Backward Compatibility
37+
#### Backward Compatibility
4238

43-
**All existing code will continue to work without changes.** The `.proxy/` path prefix is still fully supported and will be maintained indefinitely. You can:
39+
**All existing code will continue to work without changes.** The `/.proxy/` path prefix is still fully supported and will be maintained indefinitely. You can:
4440

45-
- Continue using existing `.proxy/` URLs
41+
- Continue using existing `/.proxy/` URLs
4642
- Switch to the new, simplified URLs
4743
- Use both patterns simultaneously in the same application
4844

49-
## Migration
50-
5145
**No migration is required.** This is a purely additive change that expands what's possible rather than breaking existing functionality.

0 commit comments

Comments
 (0)