Skip to content

Commit 5218b30

Browse files
committed
explicit headers in nosecone too
TypeScript generates an import to `undici-types` if it infers things. However, we do not want to depend on that. We want users to choose whether they get `Headers` and such from whatever place.
1 parent 65fcf4d commit 5218b30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nosecone/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ export function createXssProtection() {
943943
* @returns
944944
* `Headers` with the configured security headers.
945945
*/
946-
export function nosecone(options?: Options | undefined) {
946+
export function nosecone(options?: Options | undefined): Headers {
947947
let contentSecurityPolicy =
948948
options?.contentSecurityPolicy ?? defaults.contentSecurityPolicy;
949949
let crossOriginEmbedderPolicy =

0 commit comments

Comments
 (0)