Skip to content

Commit

Permalink
[TASK] Allow to show images from bing in backend by adjusting CSP in …
Browse files Browse the repository at this point in the history
…backend
  • Loading branch information
einpraegsam committed Oct 30, 2024
1 parent 94ddc70 commit 16145de
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Configuration/ContentSecurityPolicies.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

declare(strict_types=1);

use TYPO3\CMS\Core\Security\ContentSecurityPolicy\Directive;
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\Mutation;
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\MutationCollection;
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\MutationMode;
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\Scope;
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\SourceScheme;
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\UriValue;
use TYPO3\CMS\Core\Type\Map;

return Map::fromEntries([
Scope::backend(),

new MutationCollection(
new Mutation(
MutationMode::Extend,
Directive::ImgSrc,
SourceScheme::data,
new UriValue('*'),
),
),
]);

0 comments on commit 16145de

Please sign in to comment.