You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2021/09/19 07:06:44 UTC
[echarts-website] branch asf-site updated: try to fix scheme in
cors response header
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 d100e37 try to fix scheme in cors response header
d100e37 is described below
commit d100e379a49e6c6239207d55f19a208ac0967e92
Author: Zhongxiang.Wang <yh...@all-my-life.cn>
AuthorDate: Sun Sep 19 15:06:37 2021 +0800
try to fix scheme in cors response header
---
.htaccess | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.htaccess b/.htaccess
index 1646752..22f24c8 100644
--- a/.htaccess
+++ b/.htaccess
@@ -9,7 +9,8 @@ RedirectMatch 404 /\.asf\.yaml
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin: http://echarts.apache.org
- Header set Access-Control-Allow-Origin: https://echarts.apache.org env=HTTPS
+ #Header set Access-Control-Allow-Origin: https://echarts.apache.org env=HTTPS
+ Header set Access-Control-Allow-Origin: "https://echarts.apache.org" "expr=%{REQUEST_SCHEME} == 'https'"
Header set Access-Control-Allow-Methods "*"
Header set Access-Control-Allow-Headers "*"
</IfModule>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org