Do Chrome extensions have access to Chrome apps?

前端 未结 2 1549
难免孤独
难免孤独 2021-01-20 01:54

For security considerations I am wondering if Chrome extensions had access to an app. I design a Chrome App which handles sensitive data. As far as I understand it, that app

2条回答
  •  花落未央
    2021-01-20 02:23

    On one hand, extensions cannot touch your app's windows (as in, inspection / script injection) in the default environment, even with "debugger" permission. Your "local" data should be safe.

    On the other, I tested it and conclude that webRequest API will catch all XHRs you send.

    This includes headers for both request and response, and request body. Response body is currently not available for inspection; however, a malicious extension can perform a redirect, modify your request or cancel it.

    This was deemed a security issue; as of Chrome 45, extensions can no longer intercept traffic from other extensions and apps. Hosted apps were accidentally included too, but it's a bug that will be fixed soon - traffic from hosted apps will be open to webRequest as normal.

    I don't know any other possibility for an extension to snoop on an app (without any anomalous chrome://flag configuration).

提交回复
热议问题