mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-06 20:11:38 +08:00
Bug: 1251176 Change-Id: I321fc4864bbbb15bfd7ad46e5a1a7f7d066a0ebf Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3175286 Commit-Queue: Danil Somsikov <dsv@chromium.org> Auto-Submit: Danil Somsikov <dsv@chromium.org> Reviewed-by: Simon Zünd <szuend@chromium.org>
24 lines
679 B
HTML
24 lines
679 B
HTML
<!--
|
|
Copyright 2021 The Chromium Authors. All rights reserved.
|
|
Use of this source code is governed by a BSD-style license that can be
|
|
found in the LICENSE file.
|
|
-->
|
|
<!-- Intentionally trigger quirks mode -->
|
|
<meta charset="utf-8">
|
|
<script>
|
|
const url1 = new URL('./does-not-matter', document.location.toString())
|
|
.toString()
|
|
.replace('localhost', 'devtools.oopif.test');
|
|
fetch(url1, {
|
|
headers: { 'X-Foo': 'bar' },
|
|
});
|
|
</script>
|
|
<script>
|
|
const url2 = new URL('./method-disallowed.rawresponse', document.location.toString())
|
|
.toString()
|
|
.replace('localhost', 'devtools.oopif.test');
|
|
fetch(url2, {
|
|
headers: { 'X-Foo': 'bar' },
|
|
});
|
|
</script>
|