How to restrict my react website to save cookies?

234 Views Asked by At

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

enter image description here

These are dependencies saved in package.json

    "@emailjs/browser": "^3.11.0",
    "@react-google-maps/api": "^2.18.1",
    "@testing-library/jest-dom": "^5.16.5",
    "@testing-library/react": "^13.4.0",
    "@testing-library/user-event": "^13.5.0",
    "dotenv": "^16.0.3",
    "env-cmd": "^10.1.0",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-icons": "^4.8.0",
    "react-router-dom": "^6.14.1",
    "react-scripts": "5.0.1",
    "react-toastify": "^9.1.3",
    "web-vitals": "^2.1.4"

Can you please guide me how I can stop these cookies to be stored without my permission in my react project?

0

There are 0 best solutions below