Skip to content

Commit

Permalink
fix: Fix redirection to Pocket
Browse files Browse the repository at this point in the history
Requesting access to Pocket account implies a redirection to an external
domain (i.e. getpocket.com). The form was handled by Turbo Drive, which
cannot access this domain because of the `Content-Security-Policy` and
`Access-Control-Allow-Origin` policies. Thus, Turbo Drive needs to be
disabled on this form.

The bug has been introduced by d65c702.

Reference: hotwired/turbo#401
  • Loading branch information
marienfressinaud committed Sep 27, 2021
1 parent c5532b2 commit 901d788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/importations/pocket/show.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
</small>
</p>
<?php else: ?>
<form method="post" action="<?= url('request pocket access') ?>">
<form method="post" action="<?= url('request pocket access') ?>" data-turbo="false">
<input type="hidden" name="csrf" value="<?= $csrf_token ?>" />

<div class="form__actions">
Expand Down

0 comments on commit 901d788

Please sign in to comment.