-
Is there anyway to disable authentication for web services that are being exposed via the --proxy-domain flag? For instance I have a react app running in code-server on port 3000 and accessible via 3000.codeserver.mydomain.com. I also have an express backend running on port 4000 and accessible via 4000.codeserver.mydomain.com. However when I try and send a axios request from my frontend to my backend I am getting an authentication error. I understand that in a production deployment ill be proxying my frontend to my backend and all running in a single container and not concerned about cors issues but for testing purposes I would like to be able send requests to my api at those subdomains. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hmm..not that I know of but maybe @code-asher knows.
Could you disable CORS on your Express server in your dev environment? According to the docs, I think you could set |
Beta Was this translation helpful? Give feedback.
Hmm..not that I know of but maybe @code-asher knows.
Could you disable CORS on your Express server in your dev environment? According to the docs, I think you could set
origin: false
maybe?