stricter permissions

This commit is contained in:
Dima Gerasimov 2019-01-06 23:27:01 +00:00
parent f144ffa5b5
commit 39cffd7420
3 changed files with 4 additions and 3 deletions

View file

@ -45,7 +45,7 @@ After that you can find the extension in `build` directory and 'Load unpacked' i
# Permissions used # Permissions used
* `notifications` for showing error notification * `notifications` for showing error notification
* `activeTab` for requesting url, title and selected text * `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. * `content_security_policy` needed for webpack.

View file

@ -1,6 +1,6 @@
{ {
"name": "grasp-extension", "name": "grasp-extension",
"version": "0.3.2", "version": "0.3.3",
"description": "A reliable way of capturing web pages and content", "description": "A reliable way of capturing web pages and content",
"scripts": { "scripts": {
"build": "webpack --progress --profile --colors", "build": "webpack --progress --profile --colors",

View file

@ -15,7 +15,8 @@
"permissions": [ "permissions": [
"notifications", "notifications",
"activeTab", "activeTab",
"http://*/capture" "http://localhost/capture",
"https://localhost/capture"
], ],
"commands": { "commands": {
"capture-simple": { "capture-simple": {