From 34e4a9447c1ef73722b1de745380efa1f9bfdefc Mon Sep 17 00:00:00 2001 From: vinay-google Date: Tue, 6 Feb 2024 18:18:35 +0000 Subject: [PATCH] fix: Allowlist URLs through manifest for Preview links with Smart Chips --- solutions/add-on/book-smartchip/README.md | 5 +++++ solutions/add-on/book-smartchip/appsscript.json | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 solutions/add-on/book-smartchip/README.md diff --git a/solutions/add-on/book-smartchip/README.md b/solutions/add-on/book-smartchip/README.md new file mode 100644 index 000000000..46a058d5d --- /dev/null +++ b/solutions/add-on/book-smartchip/README.md @@ -0,0 +1,5 @@ +# Preview links from Google Books with smart chips + +See +https://developers.google.com/workspace/add-ons/samples/preview-links-google-books +for additional details. diff --git a/solutions/add-on/book-smartchip/appsscript.json b/solutions/add-on/book-smartchip/appsscript.json index 4e8538061..743b393c6 100644 --- a/solutions/add-on/book-smartchip/appsscript.json +++ b/solutions/add-on/book-smartchip/appsscript.json @@ -6,6 +6,9 @@ "https://www.googleapis.com/auth/workspace.linkpreview", "https://www.googleapis.com/auth/script.external_request" ], + "urlFetchWhitelist": [ + "https://www.googleapis.com/books/v1/volumes/" + ], "addOns": { "common": { "name": "Preview Books Add-on", @@ -37,4 +40,4 @@ ] } } -} \ No newline at end of file +}