Skip to content

Commit 9c216ce

Browse files
committed
fix: V-001 security vulnerability
Automated security fix generated by OrbisAI Security
1 parent eb4ba56 commit 9c216ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node/routes/vscode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ router.get("/manifest.json", async (req, res) => {
210210
})
211211

212212
let mintKeyPromise: Promise<Buffer> | undefined
213-
router.post("/mint-key", async (req, res) => {
213+
router.post("/mint-key", ensureOrigin, ensureAuthenticated, async (req, res) => {
214214
if (!mintKeyPromise) {
215215
mintKeyPromise = new Promise(async (resolve) => {
216216
const keyPath = path.join(req.args["user-data-dir"], "serve-web-key-half")

0 commit comments

Comments
 (0)