I’m encountering a similar issue and found two solutions that work as far as viewing the application directly in a browser
ngrok http 8080 -host-header="localhost:8080" ngrok http --host-header=rewrite 8080
obviously replace 8080 with whatever port you’re running on
this solution still raises an error when I use this in an embedded page, that pulls the bundle.js from the react app. I think since it rewrites the header to localhost, when this is embedded, it’s looking to localhost, which the app is no longer running on
Related Posts:
- What is localhost 3000?
- What is localhost 3000?
- MenuIcon not found in material-ui/icons
- How To Add My Own Svg Image Just Like Logo Is Shown By Default In Create-React-App
- Error : Cannot read property ‘map’ of undefined
- Error : Cannot read property ‘map’ of undefined
- When to use componentWillReceiveProps lifecycle method?
- How do I reference a local image in React?
- What is mapDispatchToProps?
- How to use clsx in React
- How to use clsx in React
- how to delete a single item using axios in react
- Understanding the React Hooks ‘exhaustive-deps’ lint rule
- Error: ‘node-sass’ version 5.0.0 is incompatible with ^4.0.0
- Console.log() isn’t logging in ReactJS
- Reactjs this.setState is not a function error
- Axios having CORS issue
- How to fix missing dependency warning when using useEffect React Hook
- When to use React setState callback
- What exactly is the ‘react-scripts start’ command?
- Adding an .env file to React Project
- react-scripts: command not found
- Component definition is missing display name react/display-name
- What is withRouter for in react-router-dom?
- How to include bootstrap css and js in reactjs app?
- When to use useImperativeHandle, useLayoutEffect, and useDebugValue
- What does this “react-scripts eject” command do?
- React-Redux: Actions must be plain objects. Use custom middleware for async actions
- React – expressions must have one parent element?
- Can you force a React component to rerender without calling setState?
- Fetching JSON returns error Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0 and status code 304: Not Modified
- Is using async componentDidMount() good?
- Support for the experimental syntax ‘classProperties’ isn’t currently enabled
- Inserting the iframe into react component
- How to use callback with useState hook in react
- How to use callback with useState hook in react
- How to resolve “Cannot use import statement outside a module” in jest
- How to use switch statement inside a React component?
- How to use onClick event on react Link component?
- forEach() in React JSX does not output any HTML
- Scroll to the top of the page after render in react.js
- What does “isomorphic React” mean?
- axios post request to send form data
- How to declare a global variable in React?
- How to use onload in react?
- Why am I getting Warning: Functions are not valid as a React child?
- Uncaught Error: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function but got: object
- What is the difference between .ts and .tsx extensions. Both are used as extensions for typescript files in react. So where should we use them?
- webpackJsonp is not defined
- How to set a default value in react-select
- ReactNative: how to center text?
- How do I avoid ‘Function components cannot be given refs’ when using react-router-dom?
- Invariant Violation: Could not find “store” in either the context or props of “Connect(SportsDatabase)”
- react-router vs react-router-dom, when to use one or the other?
- React Props is Not Defined
- ReactJs CreateClass is not a function
- onKeyDown event not working on divs in React
- React.createElement: type is invalid — expected a string
- Read the current full URL with React?
- ‘React’ must be in scope when using JSX react/react-in-jsx-scope?
- Show or hide element in React
- React statics with ES6 classes
- componentDidMount() not being called when react component is mounted
- “SyntaxError: Unexpected token < in JSON at position 0"
- NPM Start not starting local server
- React this.setState is not a function
- How to pass props to {this.props.children}
- How do I kill the process currently using a port on localhost in Windows?
- module.exports “Module is not defined”
- React’s setState method with prevState argument
- Can’t perform a React state update on an unmounted component
- What do these three dots in React do?
- Functions.php code that only runs on localhost?
- WP Asking for FTP Credentials with XAMPP Localhost
- wp_mail() is not working in localhost
- Why is ‘admin’ missing from my admin links?
- Import live site to local setup without access to live site
- “The package could not be installed” when updating plugins, themes, and core files on WampServer
- Problem moving my WordPress live site to localhost
- Multisite on localhost using xampp
- Connect to a remote database for wordpress in my own hosting server
- Allowing WordPress from non-public address/domain
- Redirect loop error on wordpress landing page on localhost
- Migrating Multisite with WP-Cli and/or Search-Replace-DB
- Live to Local on MAMP, not working, outputting functions.php code
- Row background image not showing in mobile browser served from wamp local host
- database not responding on localhost
- how to config the home page locally
- How to install multiple wordpress site on localhost
- Unusual Apache2 Error Causing WordPress Redirect Error?
- How to re-connect WP files in lampp/htdocs to new SQL database to recover site under development
- Uploading website to live causing problems to plug-in and layout
- WP 5-minute Install Error: “Waiting on Localhost…” —why does this happen?
- Local WordPress from Git repo, where to set document root?
- Locally installing wordpress. Database problem
- Localhost WordPress Uploading of Images Issue
- Problems in migration of WordPress site from local server to the online server
- How to create a child theme without losing changes made to parent
- Where to store the images of a custom WordPress theme?
- Error Message when logging into WordPress on Xampp