Commit 180a0707 authored by Côme Chilliet's avatar Côme Chilliet

🚑 fix(webservice) Do not send cookie header in API answer

issue #5810
parent 764b6645
...@@ -26,6 +26,9 @@ ...@@ -26,6 +26,9 @@
* Then the url of the webservice will be the url of your FusionDirectory instance followed by /jsonrpc.php * Then the url of the webservice will be the url of your FusionDirectory instance followed by /jsonrpc.php
*/ */
ini_set('session.use_cookies', 0);
ini_set('session.use_only_cookies', 1);
function authenticateHeader($message = 'Authentication required') function authenticateHeader($message = 'Authentication required')
{ {
header('WWW-Authenticate: Basic realm="FusionDirectory"'); header('WWW-Authenticate: Basic realm="FusionDirectory"');
......
Markdown is supported
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