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

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: 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),
11 {headers: {'X-Custom-Header': 'foo'}}).then(function(data) {
12 data.text().then(function(text) {
13 document.title = text;
14 });
falken 2016/04/06 04:41:36 nit: Service worker test code likes to chain promi
Raj 2016/04/06 05:08:42 Done. Nice.
15 }).catch(function() {
16 document.title = "FAIL";
falken 2016/04/06 04:41:36 Use single-quotes for consistency.
Raj 2016/04/06 05:08:42 Done.
17 });
18 }
19 </script>
20 </head>
21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698