Skip to content

Conversation

@ulrikandersen
Copy link
Contributor

ulrikandersen and others added 4 commits October 29, 2024 08:33
NextResponse (underlying Response) will attempt to auto detect the content type based on the passed blob. With this change the auto detection is disabled and we always return text/plain. It does not change functionality but it adds an extra safegaurd to ensure we never return HTML/JavaScript from the proxy endpoint.
Respond with text/plain from /api/proxy and /api/blob
@ulrikandersen ulrikandersen merged commit 4445c94 into main Oct 29, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants