Fix CSP nonce timing for admin styles
This commit is contained in:
9
resources/js/admin/nonce.ts
Normal file
9
resources/js/admin/nonce.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { setNonce } from '@tamagui/web';
|
||||
|
||||
const styleNonce = document
|
||||
.querySelector('meta[name="csp-style-nonce"]')
|
||||
?.getAttribute('content');
|
||||
|
||||
if (styleNonce) {
|
||||
setNonce(styleNonce);
|
||||
}
|
||||
Reference in New Issue
Block a user