From 39cffd742006fb0c93a159dbe7c2acb1d7643ee5 Mon Sep 17 00:00:00 2001 From: Dima Gerasimov Date: Sun, 6 Jan 2019 23:27:01 +0000 Subject: [PATCH] stricter permissions --- README.md | 2 +- package.json | 2 +- src/manifest.json | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b9716ae..9a855a5 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ After that you can find the extension in `build` directory and 'Load unpacked' i # Permissions used * `notifications` for showing error notification * `activeTab` for requesting url, title and selected text -* `http://*/capture` for talking with backend. This is a bit too broad, but don't think there is a stricter way of doing that? Let me know if there is. +* `http://localhost/capture` for talking with backend * `content_security_policy` needed for webpack. diff --git a/package.json b/package.json index 1373f64..c993285 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "grasp-extension", - "version": "0.3.2", + "version": "0.3.3", "description": "A reliable way of capturing web pages and content", "scripts": { "build": "webpack --progress --profile --colors", diff --git a/src/manifest.json b/src/manifest.json index fe4dd36..9b26e04 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -15,7 +15,8 @@ "permissions": [ "notifications", "activeTab", - "http://*/capture" + "http://localhost/capture", + "https://localhost/capture" ], "commands": { "capture-simple": {