Files
react-native-devtools-frontend/test/e2e/resources/console/cors-issue.html
T
Danil Somsikov 82873eeb1c Add option to hide CORS errors in console
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>
2021-09-30 10:51:17 +00:00

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>