This is a testing application i'm doing.
https://cfslpro.com/student_portal/
username : chanu
password : 123456
Before adding HTTPS , this login and everything worked. But now nothing is working. I tried adding following solutions to my NodeJS server.
This is how I configured my server.js file :
var httpServer = http.createServer(app);
var httpsServer = https.createServer(credentials, app);
httpServer.listen(8080);
httpsServer.listen(7000);
I have both HTTP and HTTPS ports opening. When I open this link "https://165.227.121.28:7000/api/user_manage/login" in my browser, it's saying connection is not secure. And also there's a CORS error coming when I'm trying to access above mentioned URL with username and password. My domain is protected with HTTPS. Can I bypass to HTTPS and use my REST API in http ? This configuration kills me. Or do we need to create a fully HTTPS enabled REST API using Node.JS ?
This is the error i'm facing. When trying to login, I'm getting this error :
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://165.227.121.28:7000/api/user_manage/login. (Reason: CORS request did not succeed).
do I need to use a proxy server for this ? what is the simplest solution to fix this ?