Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Ap3twe's avatar

API Middleware Dreamfactory Backend

In a situation where I have React application hosted on a Bluehost server. The client (Mobile phone, PC) sends a form that sends the request to the Dreamfactory API endpoint instance where it inserts the resource into the database.

Because the Dreamfactory server is under a corporate firewall, all the calls from outside the company network fail. Do I have to enable Bluehost server IP through the corporate firewall or do I have to deactivate the firewall totally?

When you make an API call, which client is making the call? my device or the Bluehost server?

0 likes
7 replies
Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

React runs on the device so it can come from any ip. So you would need to open port 443

Sinnbeck's avatar

@Ap3twe correct :) 80 for http, but I suggest use always use https in production

Ap3twe's avatar

@Sinnbeck Thank you. I have to convince the IT team to open the port. They are strict in allowing external IP. First the application is to be used internally, but it changed that some of the sales team are on the road

Sinnbeck's avatar

@Ap3twe I know the struggle. Perhaps it might be easier if you use laravel instead of react to do the calls? Then they only need to open for 1 ip

Sinnbeck's avatar

This would also keep any keys out of the browser. You can still use react and just use laravel as a bridge

1 like

Please or to participate in this conversation.