Skip to content

Commit 013b1f5

Browse files
committed
deploy: Google Chrome origin trial token
Due to a change in the policy of Google Chrome, is no longer possible request an http local resource from an http page. This change doesn't allow anymore to call the local chilli instance from the authentication portal and the users cannot request the access to internet even if the authentication was successful. As a temporary workaround, a token can be requested to disabling this feature in Google Chrome browsers. See https://developer.chrome.com/blog/private-network-access-update/#register-deprecation-trial
1 parent 64cdffd commit 013b1f5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

deploy/ansible/group_vars/all.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ icaro:
44
version: "autobuild"
55
hostname: "localhost"
66
tls: "self_signed"
7+
# Google Chrome trial token for allow Private Network Access from non-secure contexts
8+
# see https://developer.chrome.com/blog/private-network-access-update/#register-deprecation-trial
9+
#origin_trial_token: ""
710
db_root_password: "YourMariaDBPassWordHere"
811
sun_api_origin: "http://localhost:8080"
912
wax_origin: "http://localhost:8081"

deploy/ansible/roles/icaro/templates/icaro-caddy.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ http://{$ICARO_HOSTNAME}/wings {
3131
if {path} not_starts_with /wings/static/
3232
to {path} /
3333
}
34+
{% if icaro.origin_trial_token is defined %}
35+
header / Origin-Trial "{{ icaro.origin_trial_token }}"
36+
{% endif %}
3437
log / stdout {combined}
3538
}
3639

0 commit comments

Comments
 (0)