Through an i-Frame access logged in to a "Forum of discussion" created in Node BB
-
Hi, I'm developing a mobile app and I also have to add a specific feature which, within an i-Frame, must access logged in to a specific "Discussion Forum" created on Node installed on our unix machine.
To access the specific "Discussion Forum" onto the i-Frame I I first tried to invoke the "http://localhost:4567/api/v3/utilities/login" API to logged in, but then when I access to the i-Frame to view the discussion forum, I am not logged in.
Does anyone have any examples to show me on how this can be done?
-
As per the documentation, the login utility returns a valid cookie, so you will need to ensure that when you load your iframe, that it also uses the same session by including the retrieved cookie in the iframe's requests.
How to do that is beyond the scope of this topic, however.
-
Hi Julian. Can I have an example of a call using cookies?
For javascript language. -
@Carlo-Lancia You've demonstrated in the other thread that you know how to make a curl call with cookies.
What I mean to say in my last reply is that the IFrame itself needs to pass that cookie to NodeBB so that the user sees the logged-in site.
I don't know how to do that (I'm not an app developer).