I have a html form of which the fields are hidden with hardcoded values
<form ref={ref} action={crossDomainURL} method="post">
<input type="hidden" name="username" value="John"/>
</form>
We are submitting the form in useEffect using ref.current.submit(). The request is going and can be seen in network tab and as expected it is with redirect status, but the existing cookie is not being sent which is required in later forgerock sso login.
Also tried setting cookie before the form submit explicitly using react-cookie, still not able to see the cookie going in request
I am not able to get reference or example as such to do that, is it possible to send cookies via form post,what other changes needs to be done if i am missing anything.