From c99afafc3b3d4cb0f8a13b8b58a1ece0cf8816f5 Mon Sep 17 00:00:00 2001 From: Jonathan Gamble <101470903+schlawg@users.noreply.github.com> Date: Thu, 5 Dec 2024 14:55:53 -0600 Subject: [PATCH] hopefully fix update payment method on stripe see https://hq.lichess.ovh/#narrow/stream/58-dev-bug/topic/Patron.20issues/near/3549065 before considering a merge. i can close the associated issue manually if this takes and we confirm it works --- app/controllers/Plan.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/Plan.scala b/app/controllers/Plan.scala index f39d333252596..acfdb0343a45e 100644 --- a/app/controllers/Plan.scala +++ b/app/controllers/Plan.scala @@ -89,7 +89,7 @@ final class Plan(env: Env) extends LilaController(env): res <- info match case Some(info: CustomerInfo.Monthly) => Ok.page(views.plan.indexStripe(me, patron, info, env.plan.stripePublicKey, pricing, gifts)) - + .map(_.withHeaders(crossOriginPolicy.unsafe*)) case Some(CustomerInfo.OneTime(cus)) => renderIndex(cus.email.map { EmailAddress(_) }, patron.some) case None =>