We're developing a business app with forge for some time now and have hosted a dev-backend to be able to test functionality before we ship the app to production.
As our team is growing now and we need to work on backend and frontend (forge) simultaneously, the approach with hosting a dedicated dev-instance is no longer feasible.
I was under the impression that, as long as I used forge tunnel, I could also use forge's fetch with a "backend" that ran on a local port (consider our backend runs on port 8080 within a local docker container).
Yet I was not able to get this to work and would always end up receiving ERROR [...] Address not allowed if I tried to use localhost.
This is the excerpt of my manifest.yml (foo being a placeholder obviously)
I assumed it had something to do with permissions and tinkered a bit with fetch client and fetch backend permissions (e.g. using ip instead of localhost) but nothing worked.
Is this even possible and if so, what would be the best approach to connect to localhost?
Any help is appreciated.
Hi @Sascha Heinemann ,
There are a couple of issues with your approach.
The first is: `*.localhost` is not a valid domain name. On your computer, you can resolve `localhost`, but not `something-before.localhost`.
The second issue is that Forge can't resolve your localhost, because it needs a full domain name (like app.example.com).
If you have a server, you can reverse proxy through e.g. a SSH tunnel to local dev machines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!
Help us plant more trees
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.