Skip to content

[Hotfix] Fix CSP violation for Google Translate#432

Open
zooo-code wants to merge 1 commit intoapache:mainfrom
zooo-code:fix/csp-google-translate
Open

[Hotfix] Fix CSP violation for Google Translate#432
zooo-code wants to merge 1 commit intoapache:mainfrom
zooo-code:fix/csp-google-translate

Conversation

@zooo-code
Copy link
Contributor

Purpose

This is a hotfix for the Google Translate feature.
Currently, the Google Translate script is blocked by the Content Security Policy (CSP) in the production environment, causing the feature to fail on documentation pages.

Error Log

Browser console shows:

Refused to load the script 'https://translate.google.com/...' because it violates the following Content Security Policy directive: "script-src ..."

Changes

Added https://translate.google.com to the script-src directive in docusaurus.config.js.
Added https://translate.googleapis.com to ensure full compatibility.

Related Issue

Follow-up to apache/seatunnel#10462

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant