Setting SameSite cookie attribute

Hi, I’m getting an error that I need to specify SameSite=None and Secure. Have done a ton of googling & can’t figure out where/how exactly to do that.

Let me know if I need to provide any other information - thanks!

Hi @meregrubbs,

Welcome to the Community!

Can you please provide a repo or code-sandbox with your code? This is especially helpful to find solutions of technical issues with specific code

Detailing the info suggested here when having issues will help the community to provide the best possible help as quickly and as efficiently as possible.

Yes! Thanks for the response @juanma

Here’s a github repository with my code: https://github.com/meregrubbs/peep-eats-frontity

Also if it helps, here’s my system info:

System:

  • OS: macOS 10.15.6
  • CPU: (8) x64 Intel® Core™ i5-1038NG7 CPU @ 2.00GHz
  • Memory: 105.78 MB / 16.00 GB
  • Shell: 3.2.57 - /bin/bash

Binaries:

  • Node: 14.8.0 - /usr/local/bin/node
  • npm: 6.14.8 - /usr/local/bin/npm

Browsers:

  • Chrome: 86.0.4240.198
  • Edge: Not Found
  • Firefox: 82.0.3
  • Safari: 14.0

npmPackages:

  • @fortawesome/fontawesome-svg-core: ^1.2.32 => 1.2.32
  • @fortawesome/free-solid-svg-icons: ^5.15.1 => 5.15.1
  • @fortawesome/react-fontawesome: ^0.1.12 => 0.1.12
  • @frontity/core: ^1.9.1 => 1.9.1
  • @frontity/html2react: ^1.5.0 => 1.5.0
  • @frontity/tiny-router: ^1.2.3 => 1.2.3
  • @frontity/wp-source: ^1.10.0 => 1.10.0
  • @material-ui/core: ^4.11.0 => 4.11.0
  • frontity: ^1.13.0 => 1.13.0
  • peepeats-theme: file:packages/peepeats-theme => 1.0.0
  • react-parallax: ^3.1.2 => 3.1.2

npmGlobalPackages:

  • frontity: Not Found
  • npx: Not Found

The URL of my WP REST API is: https://peepeats.website/wp-json/

I’ve gotten the samesite error on both Chrome & Firefox. I also am getting a 404 error, and when I do frontity.state in the console I’m not able to access data because of that 404. Not sure if the two issues are related!

I will also note that I’m pretty new to React. So maybe this is just an issue with me not knowing enough yet.

Hi @meregrubbs,

I haven’t been able to reproduce that error but I think this is a problem with your WordPress installation as Frontity doesn’t use any cookies.

This plugin seems to solve that problem for WordPress installations prior to PHP 7.3 (or so it claims): https://wordpress.org/plugins/samesite/

Hope this helps