Commit 4b7b71ae authored by ale's avatar ale
Browse files

Set CORS headers on /sso_logout

parent cd70b62f
......@@ -399,6 +399,9 @@ static int mod_sso_method_handler(request_rec *r) {
"sso: logout? \"%s\" \"%s\"", sso_logout_path, uri);
if (!strcmp(uri, sso_logout_path)) {
modsso_del_cookie(r, sso_cookie_name, service_path);
apr_table_setn(r->headers_out, "Access-Control-Allow-Origin", s_cfg->login_server);
apr_table_setn(r->headers_out, "Access-Control-Allow-Credentials", "true");
apr_table_setn(r->headers_out, "Cache-Control", "no-cache");
return http_sendstring(r, "OK");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment