Skip to content

Commit

Permalink
RSS/Atom exports can also be requested cross-site (#372)
Browse files Browse the repository at this point in the history
Some RSS readers also send `Sec-Fetch-*` headers, I think Thunderbird is one of them.

Follow-up to #371
  • Loading branch information
spaze authored Jul 26, 2024
2 parents 65d9e48 + 4376884 commit 7d784f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions site/app/Www/Presenters/ExportsPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
namespace MichalSpacekCz\Www\Presenters;

use MichalSpacekCz\Feed\Exports;
use MichalSpacekCz\Http\FetchMetadata\ResourceIsolationPolicyCrossSite;
use MichalSpacekCz\Utils\Hash;
use Spaze\Exports\Bridges\Nette\Atom\Response;

Expand All @@ -17,6 +18,7 @@ public function __construct(
}


#[ResourceIsolationPolicyCrossSite]
public function actionArticles(?string $param = null): never
{
$feed = $this->exports->getArticles($this->link('//this'), $param);
Expand Down

0 comments on commit 7d784f1

Please sign in to comment.