Can't add custom widget to app in embedded WAB

955
2
Jump to solution
09-25-2019 06:16 AM
JonathanBailey
Occasional Contributor III

I've created a custom widget and deployed it to ArcGIS Enterprise.

In the embedded WAB, I've created a new application, and I'm trying to add the custom widget to it. On the Custom tab of the Choose Widget window, my custom widget appears, but when I click it and click OK, nothing happens.

Any way to debug this or to figure out why I can't add my custom widget to the web app?

Looking at the Web Developer Tools in Firefox, I can see that when I click OK, a GET request is issued for manifest.json, which returns with a status of 200, but there's no content to the response. If I edit and resend the request without modification, it also returns with a status of 200, but with the manifest.json content as its payload.

Maybe Derek Law‌ can provide some insight?

0 Kudos
1 Solution

Accepted Solutions
JonathanBailey
Occasional Contributor III

It turns out that this was related to a CORS configuration problem on the hosting site. I had specified https://<my portal url>/* as the allowed origin, but it only works when the "/*" was removed.

View solution in original post

2 Replies
JonathanBailey
Occasional Contributor III

It turns out that this was related to a CORS configuration problem on the hosting site. I had specified https://<my portal url>/* as the allowed origin, but it only works when the "/*" was removed.

DerekLaw
Esri Esteemed Contributor

Hi Jonathan,

Sorry for the late reply and I am glad your issue was resolved.

Hope this find you well,

0 Kudos