How to Validate an iframe in Cypress?

I’m trying to validate content within an iframe using Cypress, but I’m facing issues due to cross-origin policies. My primary page is loaded over https, and the iframe content is from a different domain

I’ve tried using cy.origin but encountered an error indicating it requires a different domain. Here is the error message:

“cy.origin() failed to create a spec bridge to communicate with the specified origin. This can happen when you attempt to create a spec bridge to an insecure (http) frame from a secure (https) frame”

How can I correctly validate the content within the iframe? Are there any best practices or alternative approaches to handle this scenario in Cypress?

any way how i can validate the Url of a iframe Page?