Questions tagged [react-cookie-consent]
9 questions
1
vote
1 answer
How to use ButtonComponent of React-Cookie-Consent library?
Can someone advise on how to use the ButtonComponent of react-cookie-consent library.
I want to add a third button on top of the accept and decline one. Looking at their documentation, there is a button component which is described as…

Leo
- 481
- 2
- 9
- 20
1
vote
0 answers
How to set up 'httpOnly' and 'secure' cookie options with react-cookie-consent?
My website is running under HTTPS and I try to save the react-cookie-consent cookie as 'httpOnly' and 'secure'. What I tried so far, without success, was cookieSecurity and extraCookieOptions like this:

Vlado
- 3,517
- 2
- 26
- 24
0
votes
0 answers
How to restrict my react website to save cookies?
I am working on website where user can accept or reject cookies. So website should save cookies only if user allow. But when website loads I can see 3 cookies already saved as shown in picture below
These are dependencies saved in package.json
…

Zohab Ali
- 8,426
- 4
- 55
- 63
0
votes
1 answer
How do I know if a React library uses cookies?
In my React app I'm not currently using cookies. Therefore I don't think I need to show a 'Cookie Settings' banner. But it occurred to me that maybe some of the npm libraries I'm using, or something built in to React itself, might be using cookies…

Sharon
- 3,471
- 13
- 60
- 93
0
votes
0 answers
react-cookie-consent is not working in IP? But it's working fine in Localhost
I have installed a react-cookies-consent and also I have customized it.
npm i react-cookie-consent
It's working fine in localhost but when I have moved my code to the development environment which server is running in IP. It's not working there…

Prem Rockz
- 1
- 1
0
votes
2 answers
How to remove react-cookie-consent bar when cookie exist?
I use reactjs and nodejs. I create an api url which create my jsonwebtoken
const createToken = (id) =>{
return jwt.sign({id},123)
}
module.exports.mandatoryTokens = async (req,res) =>{
try{
const token = createToken(new Date())
…

user10863293
- 770
- 4
- 11
- 32
0
votes
0 answers
Accessing onAccept() function in react cookie consent from custom button
I have a gatsby-react application which uses gatsby-plugin-gdpr-cookies and react-cookie-consent packages to enable and disable cookies and implement cookie consent bar. Here is the part of the component:
import CookieConsent from…

Jake Hemmington
- 15
- 4
0
votes
1 answer
react-cookie-consent storing data twice on click
Hey i am using this npm package https://www.npmjs.com/package/react-cookie-consent for creating a cookies consent in my react type script app now and through this package i can store some data in cookies after user permission. Now there are two…

user12660992
- 59
- 1
- 3
- 12
-1
votes
1 answer
React Cookie Consent banner not popping up
Recently, I published my first website using the Gatsbyjs Framework (and using the GC): Site: https://www.humital.be/
However, since the founders want to use analytics and cookies, I came to the 'React-cookie-consent' package. When first installed,…

Kwinten
- 71
- 7