Hey guys, I’m having a weird issue. I’m writing an app on live web space and I’m on to the contact form now. I’m using axios for the post and I keep getting a cors error because it thinks I’m making a request to a different site. I go to react.mydomain.com:3000 , but the post has to use localhost:3000 since it’s local to the app itself.
Has anyone ran into this and know a fix? .htaccess doesn’t seem to help when I turn cors off there.
Thanks
submitted by /u/ThisIsReLLiK
[link] [comments]