Tagged Questions
0
votes
1answer
42 views
Does XMLHttpRequest strip credentials from url when specifying a port?
I have the following code:
var url = 'http://will:secret@localhost:5984/wells/_design/reading/_view/by_time'
var xmlHttp = new XMLHttpRequest()
xmlHttp.open( 'GET', url, false )
xmlHttp.send( null )
...
0
votes
2answers
61 views
Skip HTTP authentication with Javascript?
I have a site where user must login to access. I have some web services calls for getting datas stored in another server.
But to access to the server user must login again via a login popup. To avoid ...
0
votes
0answers
89 views
Basic authentication using ajax throws error unexpected token <
I am trying to make an ajax call for the baic authentication using the following code -
$.ajax({
method: "GET",
xhrFields: {
"withCredentials": true
},
beforeSend: ...
0
votes
0answers
149 views
Calling a REST service with Basic HTTP autentication from JavaScript
I'm trying to call a REST service that uses Basic Authentication from a JavaScript thats rendered on a SharePoint page. For the Basic Authentication it should use the credentials the user logged into ...
4
votes
1answer
3k views
Can't set an HTTP Basic Auth header in AngularJS
I wrote the following controller for testing out HTTP Basic Auth using Angular JS.
function TestCtrl($scope, $http, Base64){
$http.defaults.headers.common.Authorization = 'Basic ' + ...
5
votes
4answers
5k views
Adding HTTP Basic Authentication Header to Backbone.js Sync Function Prevents Model from Being Updated on Save()
I'm working on a web application that is powered by a restful API written with Python's CherryPy framework. I started out writing the user interface with a combination of jQuery and server side ...
0
votes
1answer
360 views
HTTP Basic Auth - Server Says? [duplicate]
Possible Duplicate:
Sending basic authentication information via form
When connecting to a web folder with basic auth the server can "say" something to you.
For example when you you try ...
2
votes
2answers
5k views
HTTP basic authentication using javascript best methods
I have html5 + javascript +phone-gap app for ios.
I need to connect to a protected url and pass HTTP basic authentication in base64 to get a rss feed. Am not using jquery in the app and look good ...
0
votes
1answer
239 views
Anyway to make API calls to HTTP basic auth more secure?
I'm working on a few smaller projects, and probably a lot more later on, that will be using HTTP basic auth to fetch and post data. Some example APIs are MongoHQ and Wufoo.
The projects are heavily ...
1
vote
0answers
262 views
Javascript hitting rails3 route claims it needs authentication, even though I'm already logged in
I have a rails 3 app, where one of the pages has some javascript stuff (an OpenLayers map) that hits a route that requires authentication. When I hit the route, I get an http basic auth pop up that ...
5
votes
2answers
5k views
Get the HTTP Basic Auth username from javascript?
I have a webpage that is only accessible over http basic auth. How can I figure out the basic auth username in javascript in that page. i.e. when someone visits it (after logging in), I want to make a ...
5
votes
1answer
9k views
Ajax: HTTP Basic Auth and authentication cookie
I want to store the HTTP basic authentication headerline in an authentication cookie, so that I don't have to deal with the authorisation header in subsequent requests (I'm using JQuery):
...