Skip to content

Exposing dev server on addresses other than localhost does not work anymore #5865

@fatadel

Description

@fatadel

STR:

  1. Start profiler with FX_PROFILER_HOST=0.0.0.0 yarn start.
  2. Get your IP address, eg with ipconfig getifaddr en0.
  3. Add your IP address to the list of allowed hosts here.
  4. Access the profiler at http://YOUR_IP:4242.

Expected result:
Profiler opens.

Actual result:
Error text with 403 - Forbidden: The host "YOUR_IP" is not allowed.

Regressed in #5589.

Apparently, happens because of the hardcoded host here, but more investigation would be nice.
I've also noticed that the documentation was not updated after migrating to the es-build dev server, see here.

/cc @mstange @canova

┆Issue is synchronized with this Jira Task

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVery important to fix, typically this means that the tool is broken or lying

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions