We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38cc927 commit 00300a8Copy full SHA for 00300a8
src/fetch_request.js
@@ -44,7 +44,7 @@ export class FetchRequest {
44
body: this.formattedBody,
45
signal: this.signal,
46
credentials: 'same-origin',
47
- redirect: 'follow'
+ redirect: this.redirect
48
}
49
50
@@ -101,6 +101,10 @@ export class FetchRequest {
101
return this.options.signal
102
103
104
+ get redirect () {
105
+ return this.options.redirect || 'follow'
106
+ }
107
+
108
get additionalHeaders () {
109
return this.options.headers || {}
110
0 commit comments