Vue project that uses axios get Request aborted by calling external api in dev mode

Hello Everyone

As I described in the topic. I have a Vue project and an Express backend. They ran on different ports af a local server. I want to call the server with axios, but always get a Request Abort.

Here is the Vue.config:

module.exports = {
    devServer: {
        proxy: {
            '/': {
                target: 'http://localhost:8081',
                ws: true,
                changeOrigin: true,

I created a small api on the client:

import axios from ‘axios’

export default () => {
return axios.create({
baseURL: “http://localhost:8081/”,
timeout: 5000

and then call the api from my vue module:

  .catch(function (err){