I am trying to setup a login system on a website.
In order to do that, I have to load http only cookies.
In order to load them, I have to send them back to the client via the response object in the createServer function when https starts up.
I have successfully done that via here: setting up https cookie in nodejs
The problem is twofold.
-
The https server cookie only loads if I include the port number in the url. How do I get it to load without including the port number?
-
When the server kicks in and loads the cookie, the static index.html that was always supposed to load on the client, doesn't load and instead all i get is what was written into the response object on the server. How do I get to load the cookie, and just load that static html file? I have tried sending in the entire html file as a respnose from the server side. But I'm not sure about that, plus i get MIME type problems in the browser.
from Https createServer, load cookie and load clients index.html
No comments:
Post a Comment