We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Affected versions: 5.4.0-5.5.0
When making a request through Capacitor, I cannot set a custom Cookie header. It is stripped from the request.
Cookie
In Capacitor 5.3.0 and below, the cookie was not stripped from the request.
Enable CapacitorHttp in capacitor.config.json.
CapacitorHttp
Add to index.html
fetch("https://example.com/movies.json", { headers: { Cookie: "foo=bar" } });
Inspect logs running natively
npm --version output: 10.1.0 node --version output: v20.8.1 pod --version output (iOS issues only):
npm --version
node --version
pod --version
The text was updated successfully, but these errors were encountered:
Better reproduction:
https://github.com/aeharding/test-fetch/tree/main
https://github.com/aeharding/test-fetch/tree/working-old-capacitor
Sorry, something went wrong.
So no response to this problem since Nov 2023?
Any update regarding this? At least allow us to filter or intercept the request before sending so we may insert these headers via a hook or something.
No branches or pull requests
Bug Report
Capacitor Version
Affected versions: 5.4.0-5.5.0
Platform(s)
Current Behavior
When making a request through Capacitor, I cannot set a custom
Cookie
header. It is stripped from the request.Expected Behavior
In Capacitor 5.3.0 and below, the cookie was not stripped from the request.
Code Reproduction
Enable
CapacitorHttp
in capacitor.config.json.Add to index.html
Inspect logs running natively
Other Technical Details
npm --version
output:10.1.0
node --version
output:v20.8.1
pod --version
output (iOS issues only):Additional Context
The text was updated successfully, but these errors were encountered: