Using the fetch API to make calls to the Rails server is causing a few problems that did not occur when using ajax.
CSRF, with jquery the rails gem automatically places the CSRF token in requests, is there a way to accomplish a similar effect with fetch?
Session cookie is not persisting page reloads. I am using a session token to store a current users session and logging in then refreshing wipes the session when it should be preserved.
Have been unable to find any resources on this subject, and I have used the exact same code successfully when making calls via ajax so I know the problem is related to my switch to fetch