Official way to setup httponly cookies between Strapi v4 and a React App

System Information
  • Strapi Version: 4.9
  • Operating System: Ubuntu 18.04.6 LTS
  • Database: mysql 8.0.27
  • Node Version: 16.19.0
  • NPM Version: 8.19.3
  • Yarn Version:

What is the official way to setup httponly cookies between Strapi v4 and a React app, I can’t find any good documentation that show how exactly to do this in v4. I want to store a jwt and some user details in a httponly cookie while using only React and Strapi v4. I have found some guides for v3 that say you need to extend user-permissions to be able to do this, is that still the case for v4? Found this thread that’s seems like it should work, is this the official way?