cancel
Showing results for 
Search instead for 
Did you mean: 
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
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

Get Ready for Power BI Dev Camp

Power BI Dev Camp - September 30th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.