Hello,
I tried JavaScript code like this to speed up multi-federation logout,
but it fails because dacs_signout does not set CORS headers:
function main()
{
$("#logout_status li").each(function(idx, el) {
var el = $(el);
var progress = el.find("span.progress");
var name = el.attr("name");
var baseurl = el.attr("baseurl");
$.ajax({
url: baseurl + "/cgi-bin/dacs/dacs_signout",
type: "GET",
beforeSend: function(jqXHR, settings) {
progress.text("contacting server…");
},
success: function(data) {
progress.text("logged out.");
},
error: function(e) {
progress.text("failed: " + e);
},
});
});
}
The error is obviously this:
XMLHttpRequest cannot load https://sso.debian.org/cgi-bin/dacs/dacs_signout.
No 'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://localhost:8000' is therefore not allowed access.
It would help greatly if dacs_signout could be configured to hand out
the proper Access-Control-Allow-Origin header.
Ciao,
Enrico
--
GPG key: 4096R/E7AD5568 2009-05-08 Enrico Zini <[email protected]>
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]