Skip to content

Commit

Permalink
Merge pull request #355 from dabapps/fix-cookie-path
Browse files Browse the repository at this point in the history
Specify cookie for entire subdomain rather than specific subpath
  • Loading branch information
Nikolaev Tomov authored Apr 23, 2021
2 parents 03e2ad7 + 38b0300 commit 9ca6a0d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dabapps/roe",
"version": "0.13.1",
"version": "0.13.2",
"description": "A collection of React components, styles, mixins, and atomic CSS classes to aid with the development of web applications.",
"main": "dist/js/index.js",
"types": "dist/js/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions src/ts/components/banners/cookie-banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const CookieBanner = (props: CookieBannerProps) => {
const setCookie = () => {
document.cookie = cookie.serialize('cookies-accepted', 'true', {
maxAge: props.maxAge || A_YEAR_IN_SECONDS,
path: '/',
});
setDismissed(true);
};
Expand Down

0 comments on commit 9ca6a0d

Please sign in to comment.