Skip to content

Commit 8eeb4a3

Browse files
committed
+ Access-Control-Allow-Credentials
1 parent 76b6662 commit 8eeb4a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/ctrl.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
header('Access-Control-Allow-Origin: ' . $_SERVER['HTTP_ORIGIN']);
1313
header('Access-Control-Allow-Methods: POST, GET, OPTIONS');
1414
header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Range, Content-Disposition, Content-Type');
15+
header('Access-Control-Allow-Credentials: true');
1516
}
1617

1718

1819
if( $_SERVER['REQUEST_METHOD'] == 'OPTIONS' ){
19-
exit;
20+
exit();
2021
}
2122

2223

0 commit comments

Comments
 (0)