How to stop getting "Refused to frame…" message with Azure AD B2C in a Blazor WebAssembly App

When setting up Azure AD B2C support for a Blazor app, we are getting the error below when selecting the Twitter Identity Provider, the flow works ok though when using Facebook Identity Provider.

We need to be able to support Twitter, does anyone knows how to stop getting this error in a Blazor app

"Refused to frame ‘https://api.twitter.com/’ because an ancestor violates the following Content Security Policy directive: "frame-ancestors ‘self’"

Add Comment
1 Answer(s)

This is their policy, they do not allow launching the share window in a custom modal or an iframe.

Here are some article, I think it will useful to you.

  1. Refused to display ‘https://twitter.com/intent/tweet’ in a frame because an ancestor violates the following Content Security Policy directive: "frame-ancestors ‘self’".

  2. How to make it a modal instead of window popup?

Answered on August 31, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.