Skip to content

Commit 0187370

Browse files
authored
chore: update req_config.md with absolute URI config (#239)
1 parent be58bcf commit 0187370

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

posts/en/req_config.md

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ These are the available config options for making requests. Only the `url` is re
2222
// to methods of that instance.
2323
baseURL: 'https://some-domain.com/api',
2424

25+
// `allowAbsoluteUrls` determines whether or not absolute URLs will override a configured `baseUrl`.
26+
// When set to true (default), absolute values for `url` will override `baseUrl`.
27+
// When set to false, absolute values for `url` will always be prepended by `baseUrl`.
28+
allowAbsoluteUrls: true,
29+
2530
// `transformRequest` allows changes to the request data before it is sent to the server
2631
// This is only applicable for request methods 'PUT', 'POST', 'PATCH' and 'DELETE'
2732
// The last function in the array must return a string or an instance of Buffer, ArrayBuffer,

0 commit comments

Comments
 (0)