mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
Add cors to dmca page
This commit is contained in:
parent
0f61fb6d89
commit
21136b01da
2 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,7 @@ class ReportActions extends Actions
|
|||
{
|
||||
public static function executeDmca()
|
||||
{
|
||||
Response::setHeader(Response::HEADER_CROSS_ORIGIN, "*");
|
||||
if (!Request::isPost())
|
||||
{
|
||||
return ['report/dmca'];
|
||||
|
|
|
@ -14,6 +14,7 @@ class Response
|
|||
const HEADER_CONTENT_DISPOSITION = 'Content-Disposition';
|
||||
const HEADER_CONTENT_TYPE_OPTIONS = 'X-Content-Type-Options';
|
||||
const HEADER_CONTENT_ENCODING = 'Content-Encoding';
|
||||
const HEADER_CROSS_ORIGIN = 'Access-Control-Allow-Origin';
|
||||
|
||||
protected static
|
||||
$metaDescription = '',
|
||||
|
|
Loading…
Add table
Reference in a new issue