This is an automated email from the ASF dual-hosted git repository.
xingfudeshi pushed a commit to branch docusaurus
in repository https://gitbox.apache.org/repos/asf/incubator-seata-website.git
The following commit(s) were added to refs/heads/docusaurus by this push:
new 68cad3356f6 optimize: add docusaurus-plugin-csp (#1046)
68cad3356f6 is described below
commit 68cad3356f6d1f967616c7706757aa112dfca698
Author: jimin <[email protected]>
AuthorDate: Thu Dec 11 10:31:17 2025 +0800
optimize: add docusaurus-plugin-csp (#1046)
---
docusaurus.config.js | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 11c6a8d6ec0..d47e7444613 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -101,6 +101,23 @@ const config = {
editLocalizedFiles: true,
}),
],
+ [
+ 'docusaurus-plugin-csp',
+ {
+ useDefaults: true,
+ policy: {
+ "font-src": [
+ "'self'",
+ "https://at.alicdn.com/"
+ ],
+ "style-src": [
+ "'self'",
+ "'unsafe-inline'"
+ ],
+ "img-src": ["'self'", "data:", "blob:"]
+ }
+ }
+ ]
],
presets: [
[
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]