Set headers inside createServerAction$()
Hey folks,
I am currently trying to explicitely set my content type header to
However I don't quite understand how I can do so inside a call of
I tried to access responseHeaders from
Any idea, what I am doing wrong here?
Thanks in advance
I am currently trying to explicitely set my content type header to
Content-Type: application/json; charset=utf-8 because of some encoding issues.However I don't quite understand how I can do so inside a call of
createServerAction$().I tried to access responseHeaders from
useRequest(), however they seem to be always undefined:Any idea, what I am doing wrong here?
Thanks in advance
