For compliance with the new version of the table interface policy (T255803). This patch was created by an automated search & replace operation on the includes/ directory. Bug: T257789 Change-Id: I17e5e92e24c708ffc846945a136347670a3a20c7
24 lines
607 B
PHP
24 lines
607 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Api\Hook;
|
|
|
|
use WebRequest;
|
|
|
|
/**
|
|
* @stable to implement
|
|
* @ingroup Hooks
|
|
*/
|
|
interface RequestHasSameOriginSecurityHook {
|
|
/**
|
|
* Use this hook to determine if the request is somehow flagged to lack same-origin security.
|
|
* Note that if the "somehow" involves HTTP headers, you'll probably need to make sure
|
|
* the header is varied on.
|
|
*
|
|
* @since 1.35
|
|
*
|
|
* @param WebRequest $request
|
|
* @return bool|void True or no return value to continue, or false to indicate a lack of
|
|
* same-origin security
|
|
*/
|
|
public function onRequestHasSameOriginSecurity( $request );
|
|
}
|