mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Optimized CSP check
This commit is contained in:
@@ -3,12 +3,14 @@
|
||||
var allowedOrigin = "https://{{ domains | get_domain('web-app-port-ui') }}";
|
||||
|
||||
function notifyParent() {
|
||||
try {
|
||||
window.parent.postMessage({
|
||||
type: "iframeLocationChange",
|
||||
href: window.location.href
|
||||
}, allowedOrigin);
|
||||
} catch (e) {}
|
||||
if (window.self !== window.top) {
|
||||
try {
|
||||
window.parent.postMessage({
|
||||
type: "iframeLocationChange",
|
||||
href: window.location.href
|
||||
}, allowedOrigin);
|
||||
} catch (e) {}
|
||||
}
|
||||
}
|
||||
|
||||
function forceExternalLinks() {
|
||||
|
@@ -3,6 +3,7 @@ features:
|
||||
css: true
|
||||
port-ui-desktop: true
|
||||
javascript: false
|
||||
logout: false
|
||||
domains:
|
||||
canonical:
|
||||
- "logout.{{ primary_domain }}"
|
||||
|
@@ -8,8 +8,5 @@ container_port: 8000
|
||||
# @todo implement the calling of also dependency domains (propably the easiest to write a script which adds all dependencies to group_names)
|
||||
logout_domains: >-
|
||||
{{
|
||||
(
|
||||
[primary_domain] +
|
||||
(applications | logout_domains(group_names))
|
||||
) | unique | join(',')
|
||||
(applications | logout_domains(group_names)) | unique | join(',')
|
||||
}}
|
||||
|
Reference in New Issue
Block a user