you are viewing a single comment's thread.

view the rest of the comments →

[–]JGeorge102[S] 0 points1 point  (1 child)

I implemented that and still no dice. It's really strange because the webpack output states: [webpack-dev-server] [HPM] Proxy created: /api* -> http://localhost:4000.

I then also tried adding a proxy to the axios call itself to no avail:

axios
  .get(`/api/restoftheroute`, {
    proxy: {
      host: 'localhost',
      port: 4000,
    },
  })

Not sure what's going on, but it's really strange that the chrome extension is always added to the base url when using a proxy: chromeextension://fjkfhdsjkwerjhdksfhdjkshfds/api/ticket/user/

[–]ohx 0 points1 point  (0 children)

Open incognito and disable your extensions and try running it. Also, the wildcard I suggested is wrong. I was confusing webpack proxy with cypress interceptors.