File tree 5 files changed +11
-3
lines changed
5 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,14 @@ http {
311
311
add_header Cache-Control "public, max-age=604800" ;
312
312
}
313
313
314
+ location ~ "\.gif$" {
315
+ include snippets/security-headers.conf;
316
+ add_header Cross-Origin-Resource-Policy "same-origin" always;
317
+ add_header Cache-Control "public, max-age=31536000, immutable" ;
318
+ gzip_static off ;
319
+ brotli_static off;
320
+ }
321
+
314
322
location ~ "\.png$" {
315
323
include snippets/security-headers.conf;
316
324
# avoid breaking image hotlinking such as https://github.com/TryGhost/Ghost/issues/12880
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ <h1 id="device-integrity-monitoring">
90
90
< p > Subscribe a device to regularly submitting attestations to this account by pressing 'Enable remote verification' in the Auditor app menu and scanning the QR code for this account:</ p >
91
91
< section id ="pairing ">
92
92
< h2 > < a href ="#pairing "> Pair devices</ a > </ h2 >
93
- < img id ="qr " height ="300 " width ="300 " alt ="" src ="/placeholder.png "/>
93
+ < img id ="qr " height ="300 " width ="300 " alt ="" src ="/placeholder.gif "/>
94
94
< button id ="rotate "> Rotate device subscription key</ button >
95
95
</ section >
96
96
< form id ="configuration ">
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ function toSecurityLevelString(value) {
62
62
}
63
63
64
64
function reloadQrCode ( ) {
65
- qr . src = "/placeholder.png " ;
65
+ qr . src = "/placeholder.gif " ;
66
66
qr . alt = "" ;
67
67
post ( "/api/account.png" , localStorage . getItem ( "requestToken" ) ) . then ( response => {
68
68
if ( ! response . ok ) {
@@ -456,7 +456,7 @@ for (const logoutButton of document.getElementsByClassName("logout")) {
456
456
accountContent . hidden = true ;
457
457
username . innerText = null ;
458
458
configuration . reset ( ) ;
459
- qr . src = "/placeholder.png " ;
459
+ qr . src = "/placeholder.gif " ;
460
460
qr . alt = "" ;
461
461
loggedInButtons . hidden = true ;
462
462
logout . disabled = false ;
You can’t perform that action at this time.
0 commit comments