A の応答が User B に返る → 個人情報漏洩 / 認証バイパス 安全な3パターン 対象 戦略 公開 GET そのままキャッシュ OK 認証 GET Authorization / セッション あり → bypass 認証 GET を効かせたい稀ケース cache key に ユーザーID 混ぜる Laravel Live Japan 2026 / PHPer、Cloudflare に引っ越す 2026 / @SuguruOoki 18
use Symfony\Component\Mailer\Transport\AbstractTransport; use Symfony\Component\Mailer\SentMessage; use Illuminate\Support\Facades\Http; class CloudflareMailTransport extends AbstractTransport { public function __construct(private string $workerUrl) {} protected function doSend(SentMessage $message): void { Http::post($this->workerUrl, [ 'raw' => $message->toString(), ])->throw(); } public function __toString(): string { return 'cloudflare'; } } Laravel Live Japan 2026 / PHPer、Cloudflare に引っ越す 2026 / @SuguruOoki 34