Skip to content

relax CSP policy to address vim extension installation problem#141

Merged
sachinh-amazon merged 1 commit intoaws:1.0from
feiyangliu2023:csp-update
Feb 11, 2026
Merged

relax CSP policy to address vim extension installation problem#141
sachinh-amazon merged 1 commit intoaws:1.0from
feiyangliu2023:csp-update

Conversation

@feiyangliu2023
Copy link
Contributor

Issue

D390567072

Description of Changes

extension vscode/vim fails to install and run on code editor, because it evaluates string as javascript, which is blocked due to CSP policy.

Updated code to relax CSP policy for webWorkerExtensionHostIframe.html to 'unsafe-eval' to fix extension loading failures.

This should not cause big security concerns because extensions are run on sandboxed environment and with limited privilege. Moreover, the restriction now breaks legitimate extensions which impact user experience.

Testing

Before update:
Screenshot 2026-02-10 at 11 09 37

After update:
Screenshot 2026-02-11 at 11 10 22


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@feiyangliu2023 feiyangliu2023 requested a review from a team as a code owner February 11, 2026 10:29
@sachinh-amazon sachinh-amazon merged commit 13f2b78 into aws:1.0 Feb 11, 2026
1 check 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

Comments