Proxy server for download of files

2,118 views
Skip to first unread message

Nii Darko Darkoh

unread,
Jul 22, 2022, 8:08:22 AM7/22/22
to DroidScript
Hi guys,
please I need some tips on creating a proxy server
to channel my file download requests through.
I have taken this approach because I have tried all means
of downloading file using XHR using CORS techniques like
Origin, with credentials, etc for iOS but failed.

So finally I have resorted to use the proxy. Since this is my
first time, I will do with some tips.
Thanks in advance guys.
-Nii

Dave

unread,
Jul 22, 2022, 12:21:49 PM7/22/22
to DroidScript
You easily create a proxy server using NodeJS in a few lines of code (either online or inside a DS app).

var proxy = require('express-http-proxy'); 
var app = require('express')(); 
app.use('/ide', proxy('https://enjine.cloud/'));
var demos = app.listen(80, function () { console.log("Proxy listening :)"); });


Nii Darko Darkoh

unread,
Jul 22, 2022, 6:21:05 PM7/22/22
to DroidScript
Thanks Dave. This is my first time so I will sure come back with questions.. hahahah
-Nii

Nii Darko Darkoh

unread,
Jul 24, 2022, 8:01:11 PM7/24/22
to DroidScript
Thanks Dave.
I have checked the link but I am wondering if I can get a precompiled version 
that I can copy paste on my server.
There is so much written in the site that i got confused.
Any pointer to a much simpler approach is grossly appreciated.
Thanks. 
-Nii
Reply all
Reply to author
Forward
0 new messages