This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/echarts-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 788f3a20 chore: add security headers
788f3a20 is described below
commit 788f3a2009bcc037f07cf79b73b112ba9fb1fa47
Author: Zhongxiang Wang <[email protected]>
AuthorDate: Fri Dec 9 16:54:56 2022 +0800
chore: add security headers
---
.htaccess | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/.htaccess b/.htaccess
index d736965f..98322bf2 100644
--- a/.htaccess
+++ b/.htaccess
@@ -8,9 +8,11 @@ RedirectMatch 404 /\.github
RedirectMatch 404 /\.asf\.yaml
<IfModule mod_headers.c>
- Header set Access-Control-Allow-Origin: https://echarts.apache.org
+ Header set Access-Control-Allow-Origin "https://echarts.apache.org"
Header set Access-Control-Allow-Methods "*"
Header set Access-Control-Allow-Headers "*"
+ Header set X-XSS-Protection "1; mode=block"
+ Header set X-Frame-Options "sameorigin"
</IfModule>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]