Accessing an article's Content ID from within a Custom Embed (Power Up)'s iframe? #64
Replies: 2 comments 6 replies
-
|
Hi @markplewis could you share a bit more about your specific use case and what would be rendered from the power-up? That’ll help us better understand your setup and goal. |
Beta Was this translation helpful? Give feedback.
-
|
👋 @markplewis — from what I understand, you’d like your Power Up to access the story ID so you can trigger a backend workflow that retrieves the article’s content, sends it to your AI model for processing, and then returns the result to the Power Up UI. Since the story ID isn’t currently passed to the Power Up iframe, one possible path might involve handling that logic server-side (for example, through IFX or another integration). However, I’d love a bit more detail about your exact workflow — what the user is doing in Composer when the Power Up runs, and what data you need from the story. That’ll help us explore potential options or workarounds on our side. Rado |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We're building a Power Up that requires access to the parent article's Content ID. Unfortunately, the iframe Communication Protocol doesn't pass along any information about the article, and the cross-origin policy blocks access to properties in the parent window, such as
window.parent.location.pathname.Is there any way to achieve this or should we tell users to manually copy the content ID from the Composer page's URL and paste it into a form field within the Power Up's iframe?
In the future, would Arc consider passing the content ID to the iframe as a URL query string parameter, or perhaps allow Power Ups to request the article's content ID via
window.parent.postMessage? Or are content IDs too sensitive and exposing them may introduce security vulnerabilities?Relevant documentation: https://dev.arcxp.com/composer/developer-docs/technical-specifications-for-custom-embeds-power-up-in-composer/
Beta Was this translation helpful? Give feedback.
All reactions