Skip to content

Conversation

@qchuchu
Copy link
Contributor

@qchuchu qchuchu commented Jan 9, 2026

Summary

Fixes #286689

This PR fixes an issue where MCP apps cannot load external scripts and stylesheets from domains specified in their CSP resourceDomains configuration.

Changes

This aligns the CSP configuration for scripts and styles with the existing pattern already used for img-src and font-src.

Test Plan

Fixes microsoft#286689

Fixes issue where MCP apps couldn't load external scripts and styles
from domains specified in their CSP configuration. The resourceDomains
are now properly included in both script-src and style-src directives.
Copy link
Member

@connor4312 connor4312 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clarified in modelcontextprotocol/ext-apps#223 (comment) that this is a spec bug, so let's merge!

@connor4312 connor4312 enabled auto-merge (squash) January 9, 2026 16:52
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 9, 2026
@connor4312 connor4312 merged commit f8edfb1 into microsoft:main Jan 9, 2026
17 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.

MCP apps cannot load external scripts/styles from resource domains

4 participants