Merge pull request #525 from lbryio/feature/cors

Add cors to dmca page
This commit is contained in:
Jeremy Kauffman 2018-05-01 15:30:18 -04:00 committed by GitHub
commit 13a9eb45fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -4,6 +4,7 @@ class ReportActions extends Actions
{
public static function executeDmca()
{
Response::setHeader(Response::HEADER_CROSS_ORIGIN, "*");
if (!Request::isPost())
{
return ['report/dmca'];

View file

@ -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 = '',