Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #714
Closed
Open
Issue created Sep 23, 2016 by Administrator@rootContributor

Is there any way to specify a custom origin/referer/host?

Created by: ekaradon

Hello,

First, thanks for this project, it is really great!

I want to use it in an existing project because everything looks better with it. However I have to use a custom host project.dev.lan in order to be authorized by the backend part. Is it possible to customize this part without running npm run eject? I have seen the proxy part, but it does not change the host part in the http header request (origin and referer fields). Is there any way to force it?

I also have to set the port as 80 and not 3000. I know that we can do that through environment variables but I would prefer to have a overriding configuration file. It is easier to make it works on different OS. Same thing for the HTTPS. I prefer a file over an environment variable.

Thank you,

Assignee
Assign to
Time tracking