Download this file
| 1 | package home |
| 2 | |
| 3 | import "net/http" |
| 4 | |
| 5 | // renderContinuation ends the submitted form response before external navigation. |
| 6 | // Callers supply a validated app destination or the sign-in flow's provider URL. |
| 7 | func (a *App) renderContinuation(w http.ResponseWriter, r *http.Request, destination, title string) { |
| 8 | w.Header().Set("Cache-Control", "no-store") |
| 9 | w.Header().Set("Referrer-Policy", "no-referrer") |
| 10 | a.render(w, r, http.StatusOK, "docs_continue.html", struct{ Destination, Title string }{destination, title}) |
| 11 | } |
| 12 | |