checking csp nonce

This commit is contained in:
Claire Chabas
2025-01-13 15:32:35 +01:00
parent 5644e44e8d
commit aaf37599d9
2 changed files with 1 additions and 1 deletions
@@ -64,7 +64,6 @@ export const SearchResults = React.forwardRef(function SearchResults(
const timeoutRef = React.useRef<Timer | null>(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
+1
View File
@@ -10,6 +10,7 @@ import { filterOutNullable } from './typescript';
export async function getContentSecurityPolicyNonce(): Promise<string> {
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');
}