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

Oversized cookies are sent to ZyteAPI server resulting in downloading errors (status=400, type='/request/invalid') #223

Open
theumairahmed opened this issue Oct 4, 2024 · 0 comments

Comments

@theumairahmed
Copy link

Background

ZyteAPI server currently has the following maximum limits on cookie objects:

  1. Overall size of cookie object: 2048
  2. name: 256
  3. value: 2100
  4. domain: 500

However, ZyteAPI middleware does not check these size limits and all cookies are sent to the server which results in a server error: (status=400, type='/request/invalid')

Desired Behavior

Similar to the maximum cookie objects warning, the ZyteAPI middleware should throw a warning and discard any cookie object within experimental.requestCookies that exceeds these limits.

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

1 participant