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

Spurious "[expires] is read-only" exception #22

Open
DanielGardiner opened this issue Mar 24, 2022 · 1 comment
Open

Spurious "[expires] is read-only" exception #22

DanielGardiner opened this issue Mar 24, 2022 · 1 comment

Comments

@DanielGardiner
Copy link

Using cookiejs v2.1.0 I get the following spurious exception: Uncaught TypeError: "expires" is read-only

This occurs when attempting to set a cookie e.g. cookie.set('test', 'true', { expires: 1, })

Or attempting to remove a cookie e.g. cookie.remove('test')

This issue resolves if switching back to cookiejs v2.0.0

@jaywcjlove
Copy link
Owner

image

I don't have this problem.

@DanielGardiner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants