<html>
<head>
    <script>
        function makeRequestWithUserGesture() {
            document.requestStorageAccess();
            top.postMessage("API called.", "http://127.0.0.1:8000");
        }
    </script>
</head>
<body onclick="makeRequestWithUserGesture()">
</body>
</html>