Closed jillrizley closed 7 years ago
When are you getting the error?
To be clear, the config object should have a key apiOrigins (plural) that points to your two urls for your API (local and deployed).
You should be sending your Ajax requests to apiOrigin (singular) which is a method that selects one of those two urls based on your environment (local or deployed).
You're currently trying to send the request to apiOrigins which is an object. (Based on the code above)
Hence the [object Object] in your request.
+1 to Jordan's suggestion.
getting this error on my deployed page, saying undefined again and I'm not totally sure where it's coming from
'/full-stack-project-front-end/undefinedsign-up Failed to load resource: the server responded with a status of 405 ()'
config
api