platanus / potassium

A Rails application generator by Platanus, inspired by Suspenders
MIT License
232 stars 17 forks source link

Feat/csrf token #426

Closed josefinalliende closed 1 year ago

josefinalliende commented 1 year ago

Context

We want to add csfr token in the headers of the api client requests in potassium without using the @rails/ujs dependency. ​

What has been done

The util csrf token was added and used in the api index file.

Commit by commit


Additional info (screenshots, links, sources, etc.)

josefinalliende commented 1 year ago

We already tested that this change worked in : https://github.com/platanus/mok-salud/pull/88