Calling a REST request from a custom component does not set request headers.

0
Here is a example of login microflow. This works fine as i can see my cookies getting set in the headers below. However if i try to achieve this same thing through a REST call from a custom javascript widget i run into issues. I can’t see my cookies getting set. I went through some resources online and i couldn’t figure out the exact cause here. Here is a REST call (invoked from a custom js widget) which shows a warning of Provisional Headers are shown. The cookies are also missing in this case. How do i fix this? My all subsequent requests fail if i do not set the headers properly.
asked
0 answers