coderfin / byutv-jsonp

The byutv-jsonp element (<byutv-jsonp>) exposes network request functionality. It is a Polymer v1.0+ element that facilitates making JSONP requests. It uses Polymer behaviors (Byutv.behaviors.Jsonp). It is patterned after Polymer's iron-ajax element (<iron-ajax>). It has been tested using unit tests. It is part of the BYUtv Elements group of elements.

Home Page:http://coderfin.github.io/byutv-jsonp/components/byutv-jsonp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Basic Authentication using byutv-jsonp

itsDineth opened this issue · comments

I had been passing the credentials for Basic Authentication via the headers attribute of iron-ajax.

'{"Authorization": "Basic ' + btoa("test" + ":" + "test") + '"}'

However, this does not seem to work with the byutv-jsonp element. And neither passing the username and password via URL (i.e. test:test@api.com) works.

Is there another way to use Basic Auth with this element?

JSONP does not work the same way as AJAX. Sorry, there are no plans to support what you wan't even if it were possible.