Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
@freshheads/cookie-guard
Advanced tools
Readme
A set of hooks to use to save a user's cookie preferences in a cookie(🥲).
The cookie settings are stored as follows:
'["functional","analytics","marketing"]'
You can use the build in cookieguard to get up and running quickly or use the provided hooks to make your own.
The cookiebanner makes use of Context to share the cookie state throughout the app.
import { CookieGuardContextProvider } from '@freshheads/cookie-guard';
<CookieGuardContextProvider>
<App />
</CookieGuardContextProvider>;
The provider optionally accepts:
e.g. If you want to change the Google consent options based on the cookie settings
Add the premade Cookie Banner to your app
import {
CookieBanner,
CookieCategorySettings,
CookieGuardProvider
} from '@freshheads/cookie-guard';
import '@freshheads/cookie-guard/dist/style.css';
const CookieGuardProps = {
title: 'Onze site maakt gebruik van cookies.',
description:
'Wij gebruiken cookies voor de werking van de website, analyse en verbetering en marketingdoeleinden.',
acceptAllLabel: 'Alle cookies accepteren',
saveLabel: 'Opslaan',
requiredLabel: 'Noodzakelijke cookies'.
functionalLabel: 'Noodzakelijke cookies',
analyticsLabel: 'Analytische cookies',
marketingLabel: 'Marketing cookies',
}
return (
<CookieGuardProvider>
{/** your app components **/}
<CookieBanner {...CookieGuardProps} />
</CookieGuardProvider>
);
To style look at the source code /src/popupstyles.css
and import your own css.
You can also use the hooks to make your own custom cookiebanner
FAQs
Let user manage cookie usage
We found that @freshheads/cookie-guard demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).