Skip to content

Commit

Permalink
Remove get-host-info.sub.js from csp-sandbox.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan committed Jan 10, 2020
1 parent 72cb78f commit 28ac7a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions html/cross-origin-opener-policy/resources/csp-sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ def main(request, response):
response.content = """
<!doctype html>
<meta charset=utf-8>
<script src="/common/get-host-info.sub.js"></script>
<script>
const params = new URL(location).searchParams;
params.delete("sandbox");
window.open(`${get_host_info().HTTPS_ORIGIN}/html/cross-origin-opener-policy/resources/coop-coep.py?${params}`);
window.open(`/html/cross-origin-opener-policy/resources/coop-coep.py?${params}`);
</script>
"""

0 comments on commit 28ac7a4

Please sign in to comment.