-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[Bug]: duplicate HTTP header Cookie #7221
Comments
This issue needs more information before it can be addressed. In particular, the reporter needs to provide a minimal sample app that demonstrates the issue. If no sample app is provided within 15 days, the issue will be closed. |
App example https://github.com/ermolaev/cap-cookie-problem |
The sample app doesn't seem to be complete, the index.html that is loaded from ngrok doesn't do anything and the capacitor app just redirects to that file, I don't see any cookies set or on the headers, can you review the sample app and make the needed changes to make sure the issue can be reproduced? |
ngrok set cookie in first visit on next runs app, capacitor will be duplicate cookie header example app really very simple, but reproduce bug insted ngrok and static
in rails convert to |
I ran ngrok with the command the README said and there are no ngrok cookies, not on the header as your images show, nor on the Cookies of the Application section of Chrome dev tools. |
recording video https://disk.yandex.ru/d/cyjJmaS2Kn5RbA |
I did that, but looks like the cookie is being set on the "you are about to visit xxx" screen, which in my case doesn't appear. |
I updated repo ermolaev/cap-cookie-problem@ef281fb press to button |
thanks for the update, I could reproduce now the issue if fixed in Capacitor 6 (it's in RC state) since this was caused by the way the javascript was injected using a native connection and in Capacitor 6 it's injected in a different way, so the issue is not present, but the change can't be backported to Capacitor 5, so your only solution is to move to Capacitor 6 despite it's still RC or wait for the final release in a few weeks |
I checked 6.0.0-rc.0, problem is not reproduce 👍 @jcesarmobile can you show the commit that solved this problem, I want to explore it) |
It was this one #7199 but because this one was done first #7135 Capacitor 5 injects javascript by reading the html files and appending the javascript code in the |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Capacitor Version
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 5.6.0
@capacitor/core: 5.6.0
@capacitor/android: 5.6.0
@capacitor/ios: 5.6.0
Installed Dependencies:
@capacitor/cli: 5.6.0
@capacitor/core: 5.6.0
@capacitor/ios: 5.6.0
@capacitor/android: 5.6.0
[success] iOS looking great! 👌
[success] Android looking great! 👌
Other API Details
Platforms Affected
Current Behavior
duplicate HTTP header
Cookie
Expected Behavior
single HTTP header
Cookie
Project Reproduction
.
Additional Information
The text was updated successfully, but these errors were encountered: