"Embed widget" not working

992
8
08-08-2022 07:11 AM
Labels (1)
JoseBarrios1
Occasional Contributor III

Does anyone having problems with the embed widget on EB? I have several web pages embeded on the apps and the url links stop working. I'm getting this error:  "Sorry, this content could not be embedded. It may restrict the embedding of content from other sites".  Any suggestions??

Thanks,

JB

 

 

0 Kudos
8 Replies
TonghuiMing
Esri Regular Contributor

@JoseBarrios1 - Care to share your sample app or embedded URLs?

0 Kudos
JoseBarrios1
Occasional Contributor III

Hi TonghuiMing,

Here are two of the URL's  that are not working anymore. 

https://ecos.fws.gov/ecp/species/1

https://www.fisheries.noaa.gov/species/leatherback-turtle

0 Kudos
elpinguino
Occasional Contributor III

Hi @TonghuiMing and @JoseBarrios1 ,

Did you guys get to the bottom of this one? I've used the embed widget before on other ExB projects some of which used URLs from these same sites, but I noticed today I was getting that same error message: "Sorry this content could not be embedded. It may restrict the embedding of content from other sites." Has something changed in ExB and the embed widget since I last used it?

One URL is a shared one from Google's diagram.net. The other is a Google sheet with viewing access for specific individuals. I can share the URLs with you in a dm if you want to test it out.

In previous ExBs I've built both these types of links with similar sharing settings worked.

0 Kudos
JoseBarrios1
Occasional Contributor III

Sorry, no solution yet. I still have the same problem. 

0 Kudos
TonghuiMing
Esri Regular Contributor

Hi @elpinguino & @JoseBarrios1 

The reason you have seen this changes is that, we switched from custom widget URL check to the standard AGOL URL check methods earlier. That is why you see previously apps stopped working as expected in the builder (runtime does not have the same methods so it was not affected).

 

We are investigating this now and evaluating if there will be an enhancement.

0 Kudos
elpinguino
Occasional Contributor III

@Tone Ok. Thanks for your reply. I'll put in a button to open in a new tab for now then. If there are any other work arounds you guys come up with or if it gets fixed, please let us know!

0 Kudos
TonghuiMing
Esri Regular Contributor

@elpinguino @JoseBarrios1 

 


Here are two of the URL's  that are not working anymore. 

https://ecos.fws.gov/ecp/species/1

https://www.fisheries.noaa.gov/species/leatherback-turtle


I checked these two URLs, and the error indicates that these URLs has added a CSP that blocked being embedded inside an iframe:

TonghuiMing_0-1676361941348.png

 

If you come across situations where it shows a warning in the builder but the embedded content displays as expected at runtime - that we might be able to find a way to enhance it;

But, if you see the same behavior in builder & runtime, with a UI like the following, it probably means that the URL itself has added new restrictions (or network/proxy access), unfortunately:

TonghuiMing_1-1676362180685.png

 

And using a button with an external link could be a workaround in these situations.

elpinguino
Occasional Contributor III

@TonghuiMing Thanks for looking further into this and giving us the update. Will use a button for now.