I noticed on an old published StoryMap that a "Copy section link" button has been added next to each of the section headers. This new feature does not appear to work when the StoryMap is being displayed in an iframe. I receive the error above when clicking the button while viewing the StoryMap through the iframe. When I visit the StoryMap on AGOL and try, it works.
My organization has very specific hosting and branding requirements that require us to use an iframe with the new StoryMap builder (note: please, please consider making these open source!). Is there a way to turn off this feature? Or is this a known bug that will be solved in a future update? Thanks!
Solved! Go to Solution.
@HeatherBell - Thanks for letting us know you are also running into this issue. We are still looking into a solution at this time and will bump the priority up so we can try to get this fixed soon. I apologize for the delay.
We've done more investigation into this issue, and it appears this is a security issue that depends on the parent webpage and the browser being used. Some browsers require a parent website to enable permission policy features for embedded sites to be allowed to write to the clipboard to enable copy/paste.
Copying the heading links (as well as embed code) is currently blocked for embedded stories in Chrome and Edge, but it works as expected in Firefox and Safari. It's entirely possible, however, that Firefox and Safari could adopt similar security policies in the future and the issue would then be present in those browsers as well.
If you embed a story in another page, it's entirely up to that page as to whether it allows embedded sites to access the clipboard (in the browsers that require this permission), so this is not something we can change on our end. However, we will look into updating the error message with more information when copying is not allowed by the parent page for those cases.
Since ArcGIS Hub was specifically mentioned in this thread, we will also talk with the Hub team to see if they are open to making a change to enable this. They would need to evaluate this request and I can't say whether or not it's compatible with their security policies, but I'll post here when I have more information.
Thanks for this update, @OwenGeo. Would it be possible to simply allow StoryMap creators to turn on/off the copy link ability in the published product? This would avoid error messages entirely for those of us who will need to continue to embed these products into an iframe in order to meet organizational branding requirements.