When not specifying the mode to 'no-cors' I end up getting a cors policy issue stating the following "has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource."
As for testing it on postman. The request works just as intended which is why I am confused why it doesn't work with the code I have in the Design Manager.
Here is my postman setup...
The following screenshot is showing the post request url, payload that I am sending which is updating the property "endangered_animal_quiz_result", followed by the result at the bottom which is a 200 response.
The following is the authorization setup. I have removed my actual token value for obvious reasons, but here is the authentication which I have set to Bearer Token type.
Works on postman, I have tested it a few times. But for some odd reason the code I have in my Design Manager for the module throws a 401 error....