AccessCustomPage
Source:
src/Cloudflare/Access/CustomPage.ts
A Cloudflare Zero Trust Access custom page. Replaces the default Access
block pages (identity_denied / forbidden) with custom HTML, which can
then be selected on an Access application.
Creating a Custom Page
Section titled “Creating a Custom Page”Custom forbidden page
const page = yield* Cloudflare.AccessCustomPage("Forbidden", { type: "forbidden", customHtml: "<html><body><h1>Access denied</h1></body></html>",});Custom identity-denied page with an explicit name
const page = yield* Cloudflare.AccessCustomPage("Denied", { name: "corp-identity-denied", type: "identity_denied", customHtml: "<html><body><h1>Who are you?</h1></body></html>",});Updating the HTML
Section titled “Updating the HTML”const page = yield* Cloudflare.AccessCustomPage("Forbidden", { type: "forbidden", customHtml: "<html><body><h1>Still denied</h1></body></html>",});