Microsoft is acquiring GitHub. Decentraleyes is leaving GitHub. Welcome to its new home!

To participate, please register, or sign in with an existing GitLab.com, Bitbucket, or GitHub account.

Past contributions on GitHub? Be sure to reclaim your Comments, Issues, and Pull Requests.

Public
Authored by Alaska

used for testing the crossorigin problem on localhost

 <head>
 <script>
 window.onload = function() {
    if (window.jQuery) {  
        alert("jQuery is loaded");
    } else {
        alert("jQuery is not loaded");
    }
}
</script>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js' crossorigin onerror="alert('onerror!')"></script>
 </head>
 
 <body>
 DCE testing on localhost of script tag attribute <a href="https://git.synz.io/Synzvato/decentraleyes/issues/16">problem</a>
 <p> note: crossorigin <--regex error, incorrect string replacement to noop caused by this right-angle bracket  >  ...so regex needs improvement or else use javascript to search-and-replace
 <p> note that this test also works with internet disconnected, so that eliminates any possibility of the problem being caused by CORS preflight
 <p>crossorigin <-- unchanged by regex to 'noop', because of no trailing right-angle bracket
 </body>	
23 Bytes
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment