From a2a00e1e77f10db79a254eadf494a08df07fb3db Mon Sep 17 00:00:00 2001 From: Jason Slavin Date: Wed, 4 Dec 2024 11:11:30 -0800 Subject: [PATCH] MWPW-162959: Swap aa endpoint (#269) * Changing the API endpoint to POST to for AA form fills * Adding content type header --- scripts/aa-university.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/aa-university.js b/scripts/aa-university.js index 1706691..e5330bd 100644 --- a/scripts/aa-university.js +++ b/scripts/aa-university.js @@ -15,9 +15,10 @@ export default function registerAAUniversity() { if (group) postBody.group = group.content; - fetch('https://us-central1-adobe---aa-university.cloudfunctions.net/register', { + fetch('https://14257-bacomaaep-stage.adobeio-static.net/api/v1/web/bacom-umep/register', { method: 'POST', body: JSON.stringify(postBody), + headers: { 'Content-Type': 'application/json' }, }) .catch((error) => window.lana.log(`Marketo AA University Error: ${error}`));