Skip to content
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

XHR request from capacitor doesn't sent Cookies #3757

Closed
2 tasks done
zvitek opened this issue Nov 3, 2020 · 4 comments
Closed
2 tasks done

XHR request from capacitor doesn't sent Cookies #3757

zvitek opened this issue Nov 3, 2020 · 4 comments
Labels
needs reproduction needs reproducible example to illustrate the issue

Comments

@zvitek
Copy link

zvitek commented Nov 3, 2020

Bug Report

My application communicate with external API endpoint on server. At the first request the server create a cookie refreshToken and returns authToken. Every request contains bearer authToken and it's work good.
Every minute is necessary to refresh refreshToken.
Application make a request for refresh. (On the server compare sent authToken with the cookie to regenerate). In this endpoint it's a problem because the request doesn't contain cookies.

Capacitor Version

@capacitor/core 2.4.1
@capacitor/cli 2.4.1
@capacitor/android 2.4.1
@capacitor/ios 2.4.1
@capacitor/electron not installed

Current Behavior

The requests doesn't contains cookies

Devices

  • iOS
  • Android

Expected Behavior

Every request on same domain will contains existing cookies.

Other Technical Details

npm --version output: 6.14.8

node --version output: v12.19.0

@loburets
Copy link

loburets commented Nov 9, 2020

Have the same issue and used solution from this conversation
#1373 (comment)

But it did not really help as we need to use services like stripe which don't allow to make requests from HTTP but they worked well for localhost

Probably it can work if you downgrade xcode to 11 version and capacitor to version 2.1

@jcesarmobile jcesarmobile added the needs reproduction needs reproducible example to illustrate the issue label Dec 15, 2023
Copy link

ionitron-bot bot commented Dec 15, 2023

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.
Please see the Contributing Guide for how to create a Sample App.
Thanks! Ionitron 💙

@Ionitron Ionitron added needs reply needs reply from the user and removed needs reply needs reply from the user labels Dec 15, 2023
@jcesarmobile jcesarmobile added the needs reply needs reply from the user label Dec 15, 2023
@Ionitron
Copy link
Collaborator

It looks like this issue didn't get the information it needed, so I'll close it for now. If I made a mistake, sorry! I am just a bot.

Have a great day!
Ionitron 💙

@Ionitron Ionitron removed the needs reply needs reply from the user label Dec 31, 2023
Copy link

ionitron-bot bot commented Jan 30, 2024

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Jan 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs reproduction needs reproducible example to illustrate the issue
Projects
None yet
Development

No branches or pull requests

4 participants