Skip to content

Commit

Permalink
Merge pull request #795 from nielm/master
Browse files Browse the repository at this point in the history
Add clarification for Chrome Extensions Manifest v3
  • Loading branch information
dvanderb committed Mar 29, 2022
2 parents e296cd6 + 8c95515 commit 5e40aa7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ The JavaScript client library does not directly support logging the user out of
Since logging out of the application also logs the user out of the Google account, it is not recommended to log the user out unless the user requests this explicitly.

For a workaround that allows your application to log the user out programatically, see [this topic](https://groups.google.com/forum/?fromgroups=#!topic/google-api-javascript-client/PCs8xXV4wxk) in the JavaScript client library discussion group.


### Is it possible to use the JavaScript client library in a Chrome Extension?

Chrome Extensions using Manifest v3 do not allow [remotely hosted code](https://developer.chrome.com/docs/extensions/mv3/intro/mv3-overview/#remotely-hosted-code), so the Javascript client library cannot be used in this case.
2 changes: 2 additions & 0 deletions docs/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ Google APIs support [CORS](http://www.w3.org/TR/cors/). If your application need

The JavaScript client library works with the same browsers supported by [Google Apps](https://support.google.com/a/answer/33864) except that mobile browsers are currently not fully supported. It only works within HTML documents with a `<body>` element served using the `https` _(preferred)_ and `http` protocols. However, `<iframe sandbox>` elements and other restricted execution contexts are not supported.

Use of this JavaScript client library is not supported in Chrome Browser extensions using Manifest v3 due to the [No remotely hosted code](https://developer.chrome.com/docs/extensions/mv3/intro/mv3-overview/#remotely-hosted-code) requirement.

[](#top_of_page)Setup
---------------------

Expand Down

0 comments on commit 5e40aa7

Please sign in to comment.