This is an automated email from the ASF dual-hosted git repository.
zregvart pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/camel-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 2b1ea1c test: fix search
2b1ea1c is described below
commit 2b1ea1c3c42d87bc9e9945357a1c7a007aa69412
Author: Zoran Regvart <[email protected]>
AuthorDate: Wed Mar 4 14:47:20 2020 +0100
test: fix search
Trying to see if this CSP policy will allow XHR requests to Algolia
servers.
---
.htaccess | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.htaccess b/.htaccess
index 1098df2..ec4e332 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1323,7 +1323,7 @@ AddDefaultCharset utf-8
<IfModule mod_headers.c>
# (1) (2)
(3) (4) (5)
- Header set Content-Security-Policy "default-src 'self'; base-uri 'none';
form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests"
"expr=%{CONTENT_TYPE} =~ m#text/html#i"
+ Header set Content-Security-Policy "default-src 'self'; base-uri 'none';
form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests;
connect-src https://*.algolia.net https://*.algolianet.com"
"expr=%{CONTENT_TYPE} =~ m#text/html#i"
</IfModule>
# ----------------------------------------------------------------------