ionic-team / ionic-team/cordova-plugin-ionic-webview

Cookies are not set by Javascript document.cookie (iOS)

Open
#596 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
493
Forks
410
PR merge metrics
No merged PRs in 30d

Description

Cookies sent by backend are stored, but not the ones set by app itself.
The following code:

```
document.cookie = "notified=1; path=/; expires=Tue, 19 Jan 2038 03:14:07 GMT";
console.log(document.cookie);
```

returns empty string ("").
Angularjs $cookies.put doesn't work either.

Also, in Safari web inspector, localhost cookies list stays empty.

Tested on iOS 12.4 device with cordova-plugin-ionic-webview v.5.0.0. No issue on Android.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.