Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote Script Loading in @amplitude/analytics-browser Violates Chrome Extension Manifest V3 Policies #859

Open
ValentinBessonov opened this issue Aug 24, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@ValentinBessonov
Copy link

Issue Summary

The latest version of @amplitude/analytics-browser includes a reference to a remotely hosted script (https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz). This script is loaded during the operation of the library, which conflicts with Google Chrome Extension Manifest V3 policies. These policies prohibit the inclusion of any remotely hosted code to ensure the security and integrity of Chrome Extensions.

Steps to Reproduce

  1. Install the latest version of @amplitude/analytics-browser.
  2. Integrate it into a Chrome Extension project using Manifest V3.
  3. Submit the extension to the Chrome Web Store.
  4. The submission will fail due to the inclusion of remotely hosted code.

Expected Behavior

The @amplitude/analytics-browser library should not load any remote scripts to comply with Chrome Extension Manifest V3 policies. Instead, all required scripts should be included within the extension package.

Current Workaround

Downgrading to version 2.9.2 of @amplitude/analytics-browser resolves the issue as this version does not include the problematic remote script.

Request

Please consider removing the remote script loading in future versions of @amplitude/analytics-browser or providing an option to disable this behavior. This change is essential for users who need to comply with Chrome Extension security requirements.

Thank you for your attention to this matter.

@ValentinBessonov ValentinBessonov added the bug Something isn't working label Aug 24, 2024
@AlexPl292
Copy link

+1, I have the same issue

@wilkerlucio
Copy link

wilkerlucio commented Sep 10, 2024

+1, just got my extension update rejected because of this

@nemmtor
Copy link

nemmtor commented Oct 18, 2024

+1

2 similar comments
@SolutionsEngineer
Copy link

+1

@lennardevertz
Copy link

+1

@Mercy811
Copy link
Contributor

Mercy811 commented Nov 5, 2024

Hi, thanks for choosing Amplitude. We are working on a fix for it. For a workaround, please use a version <= 2.9.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants