Version 5.0.0 release
This commit is contained in:
1 parent
90e8c7e903
commit
a3a4a9ccbd
651 files changed
+7275
-9481
No files matched your search
@@ -329,6 +329,9 @@ class login extends Controller
|
||||
/* Don't cache the CSRF key */
|
||||
Output::setCacheTime( false );
|
||||
|
||||
/* Nor CORS request (e.g. the whole point of CSRF) */
|
||||
Output::i()->httpHeaders['Access-Control-Allow-Origin'] = Url::internal('')->data[ Url::COMPONENT_SCHEME ] . '://' . Url::internal('')->data[ Url::COMPONENT_HOST ];
|
||||
|
||||
Output::i()->json( [ 'key' => Session::i()->csrfKey ] );
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user