Skip to content

Commit

Permalink
feat: Declare CSP header requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
torotil committed Nov 7, 2024
1 parent edf8b7e commit 768af3d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions payone_payment.module
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,11 @@ function payone_payment_payment_delete(\Payment $payment) {
}, $payment->statuses);
Transaction::deleteIds($psiids);
}

/**
* Implements hook_d7csp_hosts().
*/
function payone_payment_d7csp_hosts() {
$hosts['connect-src'][] = 'https://secure.pay1.de';
return $hosts;
}

0 comments on commit 768af3d

Please # to comment.