Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Sreejith
Frequent Visitor

Error refused to display url in a frame because it set 'x-frame-options' to 'deny'

Hi,

I was trying to create a custom visual that have a Resolve link which redirects to an API on click. I used the default YourVisual template and added the link as 

tr.selectAll("td")
.data(d=> d)
.enter().append("td")
.attr('data-th',(d, i) => viewModel.categories[i].value)
.text(d => this.format(d)).append('a')
.attr("href", "www.google.com")
.attr("target","_top")
.text(" Resolve");

 

When I try to open the link an error occurres

" Refused to display https://app.powerbi.com/www.google.com in a frame because it set 'x-frame-options' to 'deny' "

Although the href i set was www.google.com, the actual request seems to be routed to  "https://app.powerbi.com/www.google.com".

 

Any help appreciated.

Thank you

 

 

Update - Solved

I need to add http to the url. In this case www.google.com was the url i wanted to redirect and changed it to https://www.google.com which worked fine.

0 REPLIES 0

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.