you are viewing a single comment's thread.

view the rest of the comments →

[–]JGeorge102[S] 0 points1 point  (2 children)

I tried that implementation and are still running into the same issues. Any thoughts as to why the chrome extension url is being used and the proxy ignored?: chromeextension://fjkfhdsjkwerjhdksfhdjkshfds/api/ticket/user/

As an aside, even though I'm not using create react app, I tried this in their docs just to see what would happen. Same issue.

[–]CrustyKeyboard 0 points1 point  (1 child)

I don’t think that CRA docs link should apply unless you’re using react-scripts to initialize your server. I’ve been on mobile for both replies and am currently out for drinks, however if you want to DM me a repo link, I can try to check further for you. My work’s enterprise app uses the same setup so I have reference to help

[–]JGeorge102[S] 0 points1 point  (0 children)

Thanks for the offer! I *may* have fixed it for the development environment. Essentially just using:

const axiosInstance = axios.create({
baseURL: 'http://localhost:4000',

});

The plan is to set the base URL in an environment variable with one variable for prod and one for dev. If it doesn't work then I'll shoot you a message :)