openedx / edx-django-utils

edX utilities for Django Application development.
https://edx.readthedocs.io/projects/edx-django-utils/en/latest/
Apache License 2.0
26 stars 20 forks source link

feat: remove certain cookies from responses #313

Closed rgraber closed 1 year ago

rgraber commented 1 year ago

Description:

Updates CookieMonitoringMiddleware to remove certain cookies (specified in a setting) from responses. Removes them by setting an expiration date in the past.

Issue: https://github.com/edx/edx-arch-experiments/issues/297

Testing instructions: Tested by removing the experiments_is_enterprise cookie from CMS (it's set in LMS)

Reviewers:

Merge checklist:

Post merge:

Author concerns:

List any concerns about this PR - inelegant solutions, hacks, quick-and-dirty implementations, concerns about migrations, etc.