MVP ready to test
This commit is contained in:
@@ -29,9 +29,9 @@ export function useCsrf() {
|
||||
* Helper function to add CSRF token to fetch headers
|
||||
*/
|
||||
const getHeaders = (additionalHeaders: HeadersInit = {}) => {
|
||||
const headers: HeadersInit = {
|
||||
const headers: Record<string, string> = {
|
||||
'Content-Type': 'application/json',
|
||||
...additionalHeaders,
|
||||
...(additionalHeaders as Record<string, string>),
|
||||
};
|
||||
|
||||
if (csrfToken) {
|
||||
|
||||
Reference in New Issue
Block a user