La fonction de suggestion automatique permet d'affiner rapidement votre recherche en suggérant des correspondances possibles au fur et à mesure de la frappe.
Hey, @Mrafey👋 Thanks for your post. I have a couple of questions:
have you tried sending this request without the mode: 'no-cors'?
have you tried sending the same request via Postman? If so, does it work without giving an error?
Thanks! — Jaycee
HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates. Learn More.
Did you know that the Community is available in other languages? Join regional conversations by changing your language settings !
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....