Skip to content

Commit 3c8bf58

Browse files
authored
Merge pull request #64 from jobvs/patch-1
Fix login redirect cookie to work in iframes
2 parents 4fe981d + 1beeee9 commit 3c8bf58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
</script>
3030
<script>
3131
if (!document.cookie || !document.cookie.match(/(^|;)originURI=/gi))
32-
document.cookie = "originURI=/login.html";
32+
document.cookie = "originURI=/login.html" + (window.location.protocol === "https:" ? ";SameSite=None;Secure" : "");
3333
</script>
3434
<script src="mxclientsystem/mxui/mxui.js?{{cachebust}}"></script>
3535
</body>

0 commit comments

Comments
 (0)