Reputation: 755
I am currently building a custom widget which has links in it. If a link is clicked, the newly opened tab has no authorization. It says the unauthorized access is forbidden. Client authorization required.
I am building the link via javascript.
var newLinkButton = (url, text) => $('<a>', {
class: 'btn btn-default btn-xs',
href: url,
role: 'button',
text: text
});
and set the base target in the header to _blank
<base target="_blank" />
The TFS sets access right equal to the ones from the iframe in which it was called. That is anonym. How do I tell TFS to take an already existing authorization?
Upvotes: 0
Views: 188
Reputation: 33708
You need to redirect to another page (not open a new page) from current page. Change _blank to _top.
<base target="_top" />
Upvotes: 1