Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 48064

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

$
0
0

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 displayhttps://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


Viewing all articles
Browse latest Browse all 48064

Trending Articles