New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getCookieString should be exposed #44
Comments
Hi Cornelius, it's not exposed in ionic because it's not even exposed in this plugin. What do you need that function for? It's meant to be used internally to create the cookie header. Can you explain your use-case? |
Hi Sefa, I have a requirement whereby I need to set Cookies into an iframe in an ionic application. |
Hmm ok, I still don't understand your use-case. This function is meant to create the cookie header string which is sent to the server. So if I'd expose this function you'd be able to get the stored cookies for a specific server. I'm still not sure if this is a good idea (security concerns). But how do you want to use this in an iframe? e.g. running a GET request to http://www.google.de/
Is this you want to have? |
Sorry, I should have explained it to you much better. This is my project requirements ... So for example, authenticated via https://www.xxx.org by using this plugin and then for the iframe, the src url would be: I have written this app in ionic. I hope this is a bit clearer. Thanks so much |
Ok, thank you for your detailed description. The function "getCookieString" will be exposed in v1.9.0. |
Thank you |
Hello @silkimen, I don't use this plugin yet, but is there any way to access HttpOnly cookie? |
Hi @Bessonov, |
Hi,
Is there any reason why getCookies in https://github.com/silkimen/cordova-plugin-advanced-http/blob/master/www/cookie-handler.js#L48 is not exposed in ionic?
According to the ionic documentation at https://ionicframework.com/docs/native/http/, the only methods exposed are ClearCookies and RemoveCookies
Thanks,
Cornelius
The text was updated successfully, but these errors were encountered: