Skip to content

Commit

Permalink
fix silent-check-sso.html to use the correct origin for postMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixTJDietrich committed Oct 15, 2024
1 parent 75fcb08 commit 01bf9df
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ export const environment = {
};
EOF

# Fix silent-check-sso.html
RUN cat public/silent-check-sso.html <<EOF
<html>
<body>
<script>
parent.postMessage(location.href, '${APPLICATION_CLIENT_URL}');
</script>
</body>
</html>
EOF

RUN npm install
RUN npm run build

Expand Down
2 changes: 1 addition & 1 deletion webapp/public/silent-check-sso.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<html>
<body>
<script>
parent.postMessage(location.href, '*');
parent.postMessage(location.href, location.origin);
</script>
</body>
</html>

0 comments on commit 01bf9df

Please sign in to comment.