Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1506)

Side by Side Diff: content/test/data/service_worker/fetch_cross_origin.html

Issue 1859313002: Save-Data should not be added to CORS Access-Control-Request-Headers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed kinuko comments Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>INITIAL</title>
5 <script>
6 var queryString = location.search;
7
8 if (queryString && queryString.charAt(0) === '?') {
9 // Fetches the URL provided in query string with a custom header.
10 fetch(queryString.substring(1), {headers: {'X-Custom-Header': 'foo'}})
11 .then(data => data.text())
12 .then(text => document.title = text)
13 .catch(() => document.title = 'FAIL');
14 }
15 </script>
16 </head>
17 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698