What are the integrity and crossorigin attributes?

Bootstrapcdn recently changed their links. It now looks like this: <link href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css” rel=”stylesheet” integrity=”sha256-MfvZlkHCEqatNoGiOXveE8FIwMzZg4W85qfrfIFBfYc= sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==” crossorigin=”anonymous”> What do the integrity and crossorigin attributes … Read more

jQuery AJAX cross domain

Here are two pages, test.php and testserver.php. test.php <script src=”https://stackoverflow.com/questions/3506208/scripts/jq.js” type=”text/javascript”></script> <script> $(function() { $.ajax({url:”testserver.php”, success:function() { alert(“Success”); }, error:function() { alert(“Error”); }, … Read more