Skip to content

Commit 5c22dee

Browse files
Add not that may not work when CSP enabled.
1 parent cb2cef0 commit 5c22dee

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

workshops/lab-lookup-consumption/workshop/content/10-browser-redirection.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ command: |-
5656
curl --silent -X POST -H "Authorization: Bearer ${ACCESS_TOKEN}" -H "Content-Type: application/json" -d '{"tenantName": "example-tenant", "workshopName": "lab-k8s-fundamentals", "clientIndexUrl": "http://files-{{< param session_hostname >}}/htdocs/close-browser-tab.html", "clientUserId": "end-user-id-1"}' http://educates-api.hub.{{< param session_name >}}.{{< param ingress_domain >}}/api/v1/workshops | jq
5757
```
5858

59+
Note that although this may work here in this workshop, it may not work where
60+
embedding and content security policies (CSP) are enabled. For this workshop
61+
environment CSP has been disabled for the Educates installation you are working
62+
with. So ensure you test with your actual Educates deployment.
63+
5964
If curious as to how the web page the workshop sessions is being redirected to
6065
is implemented see the `htdocs/close-browser-tab.html` file.
6166

workshops/lab-lookup-consumption/workshop/content/13-javascript-redirect.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ command: |-
1717
SESSION_ACTIVATION_URL=$(curl --silent -X POST -H "Authorization: Bearer ${ACCESS_TOKEN}" -H "Content-Type: application/json" -d '{"tenantName": "example-tenant", "workshopName": "lab-k8s-fundamentals", "clientIndexUrl": "http://files-{{< param session_hostname >}}/htdocs/javascript-redirect.html?target=http://files-{{< param session_hostname >}}/htdocs/root-of-web-site.html", "clientUserId": "end-user-id-1"}' http://educates-api.hub.{{< param session_name >}}.{{< param ingress_domain >}}/api/v1/workshops | jq -r -e .sessionActivationUrl) && echo $SESSION_ACTIVATION_URL && export SESSION_ACTIVATION_URL && envsubst < templates/embedded-dashboard.html > htdocs/embedded-dashboard.html
1818
```
1919

20+
Note that although this may work here in this workshop, it may not work where
21+
embedding and content security policies (CSP) are enabled. For this workshop
22+
environment CSP has been disabled for the Educates installation you are working
23+
with. So ensure you test with your actual Educates deployment.
24+
2025
Now click below to open up this web page.
2126

2227
```dashboard:open-url

0 commit comments

Comments
 (0)