Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Django_ middleware which removes all unwanted cookies - useful for improving cache hit ratios when analytics cookies interfere with caching.
.. _Django: https://www.djangoproject.com/
Using pip_:
.. _pip: https://pip.pypa.io/
.. code-block:: console
$ pip install django-cookiefilter
Edit your Django project's settings module, and add the middleware to the start of MIDDLEWARE
:
.. code-block:: python
MIDDLEWARE = [
"cookiefilter.middleware.CookieFilterMiddleware",
# ...
]
.. note::
The middleware should be added before ``UpdateCacheMiddleware``, as it uses the value of
HTTP_COOKIES which needs to be modified.
Out of the box the standard Django cookie names will work without any other configuration. However
if your project uses different or additional cookie names, edit COOKIEFILTER_ALLOWED
in your
project's settings module:
.. code-block:: python
COOKIEFILTER_ALLOWED = [
"analytics",
"csrftoken",
"django_language",
"messages",
"sessionid",
]
FAQs
Django Cookie Filter
We found that django-cookiefilter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.