After going through a whole troubleshoot checklist, including suggestions below (thank you), I went back to the beginning and thought about the error message 404. I looked at my url and the stripe documentation again. Changing
http://127.0.0.1:3000/api/charge
to
/charge
solved it. However, I'm not sure why. My other fetch requests on this app use the longer version. Can anyone explain?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
After going through a whole troubleshoot checklist, including suggestions below (thank you), I went back to the beginning and thought about the error message 404. I looked at my url and the stripe documentation again. Changing
to
solved it. However, I'm not sure why. My other fetch requests on this app use the longer version. Can anyone explain?