ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
12.13k stars 1k forks source link

feat: #6892

Open nickredding opened 1 year ago

nickredding commented 1 year ago

Feature Request

Description

CapacitorCookies.setCookie should allow setting of attributes Secure, Domain, Max-Age, SameSite and HttpOnly

Platform(s)

Android, iOS

Preferred Solution

Extract values for these attributes and apply them when setting the cookie

Alternatives

For Android, this could be achieved by including the atttrbutes in the value. That will not work for iOS because the iOS implementation applies % encoding to the value.

Additional Context

nickredding commented 1 year ago

The solution to #6860 addresses this as well