You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/change-log/2025-07-30-remove-proxy-from-discord-activity-proxy-path.md
+8-14Lines changed: 8 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,46 +6,40 @@ topics:
6
6
- "Embedded App SDK"
7
7
---
8
8
9
-
## Overview
10
-
11
9
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.
12
10
13
-
## What Changed
14
-
15
-
### Before
11
+
#### Before
16
12
17
13
Activities were required to make proxy requests through paths prefixed with `/.proxy/`:
Activities can now make proxy requests directly without the `.proxy/` prefix:
21
+
Activities can now make proxy requests directly without the `/.proxy/` prefix:
26
22
27
23
```
28
24
https://<app_id>.discordsays.com/api/endpoint
29
25
```
30
26
31
-
## Technical Details
27
+
####Technical Details
32
28
33
29
-**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/*`
34
30
-**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`
35
31
-**Performance**: No performance differences between the two approaches
36
32
37
-
## Developer Tooling Updates
33
+
####Developer Tooling Updates
38
34
39
35
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.
40
36
41
-
## Backward Compatibility
37
+
####Backward Compatibility
42
38
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:
44
40
45
-
- Continue using existing `.proxy/` URLs
41
+
- Continue using existing `/.proxy/` URLs
46
42
- Switch to the new, simplified URLs
47
43
- Use both patterns simultaneously in the same application
48
44
49
-
## Migration
50
-
51
45
**No migration is required.** This is a purely additive change that expands what's possible rather than breaking existing functionality.
0 commit comments