App: Allow receipt to be shown in iframe (#6574)

Also detects if the checkout page is shown within an iframe and hides the back to store link in that case.
This commit is contained in:
d11n
2025-01-21 15:50:27 +01:00
committed by GitHub
parent 97173c9811
commit 20e8db7307
4 changed files with 12 additions and 2 deletions

View File

@@ -188,6 +188,7 @@ namespace BTCPayServer.Controllers
return View(model);
}
[XFrameOptions(null)]
[HttpGet("i/{invoiceId}/receipt")]
public async Task<IActionResult> InvoiceReceipt(string invoiceId, [FromQuery] bool print = false)
{