Skip to content

Commit 4e69750

Browse files
authored
Fix security headers (#4158)
1 parent 57c748f commit 4e69750

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

config/secure-headers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@
759759
* window.location = base;
760760
* }
761761
*/
762-
'okzzdI+OgeNYCr3oJXDZ/rPI5WwGyiU5V/RwOQrv5zE=',
762+
'/YUD5b5Ze0TEXHUw/Vl3MbJXEKRQ1Hg6jBoeNlyFnec=',
763763

764764
/**
765765
* document.addEventListener("DOMContentLoaded", function(event) {

resources/views/vueapp.blade.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,12 @@
2222
const hashMatch = document.location.hash.replace("#", "").split("/");
2323
const albumID = hashMatch[0] ?? '';
2424
const photoID = hashMatch[1] ?? '';
25+
const url = document.querySelector("base")?.getAttribute("href");
2526
2627
if (photoID !== '') {
27-
window.location = @php
28-
echo '"'.route('gallery').'/"'
29-
@endphp + albumID + '/' + photoID;
28+
window.location = url + `/gallery/${albumID}/${photoID}`;
3029
} else if (albumID !== '') {
31-
window.location = @php
32-
echo '"'.route('gallery').'/"'
33-
@endphp + albumID;
30+
window.location = url + `/gallery/${albumID}`;
3431
}
3532
</script>
3633
@endif

0 commit comments

Comments
 (0)