I'm assuming that by "injecting javascript to make the request" you
mean just inserting <script> tags in the page, then there is no way
(to my knowledge) to send along HTTP auth info with that sort of
request.  In my experience, since Cross-Site ajax requests are not
allowed, the only way to make requests that require HTTP auth is to
use some sort of server proxy.  Is that what you are asking? I'm not
sure I totally got your question.
-Chad

On Tue, Jan 13, 2009 at 9:22 AM, Dimebrain <[email protected]> wrote:
>
> I realize session auth isn't supported, but considering that JSONP
> callbacks are, is it possible to avoid a prompt for username and
> password when making requests w/ JSON callbacks that require them?
> Since I'm basically just injecting javascript to make the request,
> it's not obvious to me how to send the username and password along
> with it, even if I'm providing it each and every time without making a
> "real" cross-domain request which isn't possible. All All I'm after is
> a way to explicitly provide the username/password rather than submit
> to a prompt.
>

Reply via email to