Skip to content
Permalink
Browse files
fix(module): browserBaseURL as empty string (fixes #303)
  • Loading branch information
pooya parsa committed Apr 21, 2020
1 parent 6c5605d commit 18afe5c1a9aac6380bdd5ffb337a0968a6d504aa
Showing 1 changed file with 2 additions and 2 deletions.
@@ -53,7 +53,7 @@ function axiosModule (_moduleOptions) {
// Apply defaults
const options = defu(moduleOptions, {
baseURL: `http://${defaultHost}:${defaultPort}${prefix}`,
browserBaseURL: null,
browserBaseURL: undefined,
credentials: false,
debug: false,
progress: true,
@@ -78,7 +78,7 @@ function axiosModule (_moduleOptions) {
}

// Default browserBaseURL
if (!options.browserBaseURL) {
if (typeof options.browserBaseURL === 'undefined') {
options.browserBaseURL = options.proxy ? prefix : options.baseURL
}

0 comments on commit 18afe5c

Please sign in to comment.