How do I change localhost:3000 to “custom.domain.dev” for a React app built with create-react-app for CORS

Asked
Active3 hr before
Viewed126 times

2 Answers

reactchange
90%

How do I configure my app to use custom.domain.dev instead of localhost:3000? ,I am running into a CORS issue when trying to have my React app send post requests to an api endpoint while using localhost:3000. ,Regarding the CORS flag on local host

Pretag
 Pretag team - issue, fix, solve, resolve
88%

This tutorial assumes you’re using create-react-app 3+ and OS X. If you have a different setup, I’ve added helpful links wherever necessary,Setting up react dev server to serve pages over HTTPS is easy. Just set an environment variable: HTTPS=true, and you’re done (official React docs).,Fortunately, there’s a crafty way of getting your dev server working.

    HTTPS = true
    HOST = 'dev.mylocalsite.com'
load more v

Other "react-change" queries related to "How do I change localhost:3000 to “custom.domain.dev” for a React app built with create-react-app for CORS"