Sha256: 386541e7a3a37c5b6bccaf171683632f1a2a4c14fe7abc5dd30303cf8aef5b26
Contents?: true
Size: 832 Bytes
Versions: 3
Compression:
Stored size: 832 Bytes
Contents
<html> <p>Safari requires your consent to access session information when applications are hosted inside of Canvas. Please consent by clicking the following button.</p> <button id="myButton">Authorize application to use browser session</button> <script nonce=<%= content_security_policy_script_nonce %>> function makeRequestWithUserGesture() { var promise = document.requestStorageAccess(); promise.then( function () { var referrer = document.referrer; window.location='?safari_cookie_authorized=true&return_to='.concat(encodeURI(window.location)); }, function () { // If the user doesn't consent, then do nothing. } ); } document.getElementById("myButton").addEventListener("click", makeRequestWithUserGesture); </script> </html>
Version data entries
3 entries across 3 versions & 1 rubygems