From 39e264ba845c0ccaa5c131f9395e28261f6e6b71 Mon Sep 17 00:00:00 2001 From: Darien Pardinas Diaz Date: Thu, 22 Aug 2024 19:10:12 -0400 Subject: [PATCH] Bug Fix: Release 0.0.11 with CORS enabled now. --- CHANGELOG.md | 4 ++++ package.json | 2 +- src/extension.ts | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8dbce78..b5530fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [0.0.11] + +- Bug Fix for `Access-Control-Allow-Origin: *` response header to allow calling VSCode REST Control from web browsers. + ## [0.0.10] - Added `Access-Control-Allow-Origin: *` response header to allow calling VSCode REST Control from web browsers. diff --git a/package.json b/package.json index d94f0e5..80ef86f 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "This extension allows you to remotely control Visual Studio Code via a REST endpoint, taking automation to the next level.", "publisher": "dpar39", "license": "MIT", - "version": "0.0.10", + "version": "0.0.11", "engines": { "vscode": "^1.55.0" }, diff --git a/src/extension.ts b/src/extension.ts index 3744748..b4e488f 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -73,6 +73,7 @@ const startHttpServer = async ( processRemoteControlRequest(cmd, args) .then((data) => { res.setHeader("Content-Type", "application/json"); + res.setHeader("Access-Control-Allow-Origin", "*"); res.write(JSON.stringify(data || null)); res.end(); })