summaryrefslogtreecommitdiffstats
path: root/dom/security/test/csp/file_navigate_to_request.html
blob: 4f82525599f36ddf90d89edc95945125ed7c8263 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
</head>
<script type="text/javascript">
  // The idea with this file is to convert responses into requests. 
  // This is needed because we don't have 
  // specialpowers-http-notify-response

  // Response from this file => request to www.example.com => Allowed
  // CSP error               => Blocked
  fetch('http://www.example.com/');
</script>
<body>
</body>
</html>