I’m configuring CF for the first time. I have a node.js application running on Digital Ocean. My Front End react App is hosted elsewhere on a different domain and was working, but when I changed the Name Server to CF, the Front End stopped working.
In CF I can see the records imported.
On Front End, using developer tools I can see error on the ajax calls ‘NS_BINDING_ABORTED’
Any ideas on what could be the cause and possible solution?
UPDATE, I noticed when Proxy Status is switched off the Fronte-end works. It seems that when Proxied, the headers ‘Orgin’ and ‘Referer’ is missing and I cannot see why CF is removing them…
Before moving to Cloudflare, was your Website working over HTTPS connection?
May I ask what SSL option have you got selected under the SSL/TLS tab at Cloudflare dashboard for your domain ( Flexible, Full, Full Strict … )?
Before moving to Cloudflare the Front-End’s worked over HTTPS
I have selected FULL under the SSL/TLS tab
I have not set Digital Ocean’s firewalls to block any incoming IP addresses (I assume this is normal otherwise FE users would get blocked?)
Hi, I tried three modes Flexible, Full and Strict and they all present the same issues.
I noticed using dev tools that the api calls being made are not secure, and timeout when Proxy Status is ON. When Proxy Status is OFF, the api calls are secure.
The API server is Node.js (without nginx) running on port 9089. Originally and still a Lets Encrypt certificate are installed and this is what Node.js is using.
When I switched NS to Cloudflare, I have not generated or configured the existing certs.
I am only attempting to protecting the api server with Cloudflare.
Hi, I dont have any proxy and go directly into node.js/express server. Does this bear a risk ?
(I’m not yet using NginX but I may have it added. I dont have a load balancer either, just a single instance.)
You are correct its a SAAS idea where its possible to have several front-ends on different domains.
I will see if I can switch the node.js port to 8443 and hopefully that should fix it.
If you have any observations please let me know in the meanwhile. Thanks again