Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add referrerpolicy="strict-origin-when-cross-origin" to youtube iframes #5606

@johnsunxu

Description

@johnsunxu

Is it an issue related to Adaptive Cards?

No

Is this an accessibility issue?

No

What version of Web Chat are you using?

Latest production

Which distribution are you using Web Chat from?

Bundle (webchat.js)

Which hosting environment does this issue primarily affect?

Web apps

Which browsers and platforms do the issue happened?

Browser: Edge (latest) and maybe more

Which area does this issue affect?

Attachment: Other rich cards

Which theme pack does this issue affect?

I did not test it on other theme packs

What is the public URL for the website?

No response

Please describe the bug

On some browsers youtube iframe links are dead (Error 153). Youtube changed their iframes pretty recently but it seems adding the referrer attribute fixes the problem. It doesn't work for me on Macos edge (but works on chrome firefox and safari).

Do you see any errors in console log?

How to reproduce the issue?

  1. View a message with a youtube link

What do you expect?

The iframe to not give an error

What actually happened?

The iframe got a 153 error

Do you have any screenshots or recordings to repro the issue?

No response

Adaptive Card JSON

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.bugIndicates an unexpected problem or an unintended behavior.customer-reportedRequired for internal Azure reporting. Do not delete.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions