Skip to content

Commit 25f493b

Browse files
Added changelog
1 parent 6dcfa8a commit 25f493b

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
title: "Remove .proxy/ from Discord Activitiy proxy path"
3+
date: "2025-07-30"
4+
topics:
5+
- "Activities"
6+
- "Embedded App SDK"
7+
---
8+
9+
## Overview
10+
11+
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+
13+
## What Changed
14+
15+
### Before
16+
17+
Activities were required to make proxy requests through paths prefixed with `/.proxy/`:
18+
19+
```
20+
https://<app_id>.discordsays.com/.proxy/api/endpoint
21+
```
22+
23+
### After
24+
25+
Activities can now make proxy requests directly without the `.proxy/` prefix:
26+
27+
```
28+
https://<app_id>.discordsays.com/api/endpoint
29+
```
30+
31+
## Technical Details
32+
33+
- **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+
- **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+
- **Performance**: No performance differences between the two approaches
36+
37+
## Developer Tooling Updates
38+
39+
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+
41+
## Backward Compatibility
42+
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:
44+
45+
- Continue using existing `.proxy/` URLs
46+
- Switch to the new, simplified URLs
47+
- Use both patterns simultaneously in the same application
48+
49+
## Migration
50+
51+
**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)