next.js/examples/with-strict-csp/app/page.js
page.js10 lines281 B
import { headers } from "next/headers";
import Script from "next/script";

export default async function Page() {
  const headerStore = await headers();
  const nonce = headerStore.get("x-nonce");

  return <Script src="https://..." strategy="afterInteractive" nonce={nonce} />;
}
Quest for Codev2.0.0
/
SIGN IN