diff --git a/packages/gitbook/src/components/Search/SearchResults.tsx b/packages/gitbook/src/components/Search/SearchResults.tsx index b7c594203..4f1e0aeb0 100644 --- a/packages/gitbook/src/components/Search/SearchResults.tsx +++ b/packages/gitbook/src/components/Search/SearchResults.tsx @@ -64,7 +64,6 @@ export const SearchResults = React.forwardRef(function SearchResults( const timeoutRef = React.useRef(null); const fetchResults = React.useCallback(async () => { - console.log('fetchResults is called', { query, global, pointer, revisionId }); setResultsState((prev) => ({ results: prev.results, fetching: true })); const results = await (global diff --git a/packages/gitbook/src/lib/csp.ts b/packages/gitbook/src/lib/csp.ts index 663a2a14a..b703ac454 100644 --- a/packages/gitbook/src/lib/csp.ts +++ b/packages/gitbook/src/lib/csp.ts @@ -10,6 +10,7 @@ import { filterOutNullable } from './typescript'; export async function getContentSecurityPolicyNonce(): Promise { const headersList = await headers(); const nonce = headersList.get('x-nonce'); + console.log('CSP Nonce called', { headers, nonce }); if (!nonce) { throw new Error('No nonce found in headers'); }