368 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
2
answers
83
views
CSP - Possible to have GTM without unsafe-inline?
I have to secure a checkout that includes a nonce aware GTM script code:
<script nonce="eWp5ejMyZjFiZDRzMzBwZjc1M3dhYXdpNHRnM3RoNjc=">(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm....
0
votes
1
answer
60
views
Sinatra app Content Security Policy nonce for inline script not working
In my very simple Sinatra app I have a home page on which there is form which needs to be submitted through AJAX and the HAML template needs to execute some JS code. And I need to set the Content-...
3
votes
1
answer
285
views
Static styles injected by Angular during build time causes CSP violation
I am working on a Angular 18 project. My org has the strict CSP policy and no unsafe-inline is allowed.
As documented by Angular here, while rendering the index.html, I generate a nonce per request ...
1
vote
0
answers
106
views
ContentSecurityPolicy for script set to nonce but Ajax request not executing javascript response despite identical nonce
In my web app (based on Hanami 2.2) I have ContentSecurityPolicy enabled to allow inline scripts to run using nonce strategy
config/app.rb
config.actions.content_security_policy[:script_src] = "'...
-2
votes
1
answer
206
views
How do I use Rust to verify a solan signature?
I made a signature on solana
solana verify-offchain-signature --signer DR2BCjL1yX5HnuTSYVMeRY5tsHd8ZJZz2vFf5zs5aYop "55f04639-d058-407a-8b38-7df7b20b39a0" ...
0
votes
1
answer
199
views
Nonce not working in browser even though it is set in policy and script
The nonce doesn't seem to work anywhere. Currently we cut out everything that could make problems, since of course it should be generated, but now it is just static for testing purposes.
Our content ...
0
votes
0
answers
79
views
Angular Material Icons Not Loading When CSP with Nonce is Applied — Fonts Blocked from style.css
I'm using Angular 12 with Content Security Policy (CSP) headers in place, including a nonce for script-src and style-src.
The app loads correctly except for Angular Material icons, which appear broken....
1
vote
1
answer
78
views
Generating a nonce for a Chrome Web Extension
We are trying to generate a nonce for a chrome web extension so that we can run content scripts within an HTML that communicates with an onscreen popup. We have been hit with security errors when ...
2
votes
1
answer
368
views
Angular 18.2 with strict CSP (nonces) is not injecting the ngCspMedia script into index.html
I have an Angular v. 18.2 app. It uses nonces for strict Content-Security-Policy. It is built and deployed in Jenkins. It was working fine until about a few weeks ago (not sure of the exact date of ...
0
votes
2
answers
94
views
Fullcalendar.io not working with CSP nonce on safari Browser
I am using FullCalendar.io in my Asp.Net core web app. Also I have setup CSP with NetEscapades.AspNetCore.SecurityHeaders.
Here are the definitions:
policy.AddContentSecurityPolicy(builder =>
{
...
0
votes
0
answers
100
views
Google OAuth2: Custom Nonce Parameter Not Passed Back in Redirect
I'm working on integrating Google OAuth2 into a WordPress plugin and trying to secure the authorization flow using a custom nonce parameter. Here’s what I’ve done:
1. Generated the nonce and added it ...
0
votes
1
answer
596
views
Angular AG Grid - Content Security Policy (CSP) Nonce
While applying CSP nonce for scripts and styles, I ran into a problem for ag-grid (https://www.ag-grid.com/).
I followed approach mentioned in angular csp documentation (https://angular.dev/best-...
0
votes
1
answer
1k
views
Seeking an appraoch to set ngCSPNonce or CSP_NONCE in Angular 18 for Angular Web Components/Custom elements?
I have written an Angular custom element like below
customElements.define('my-comp', createCustomElement(BasicComponent, config));
and will provide as js file after build using npm run build-elements ...
0
votes
0
answers
841
views
How to automatically add the nonce attribute for inline scripts and styles?
I'm using Rails 6.1.7 and trying to configure CSP in my application. I already have the file content_security_policy.rb configured:
Rails.application.config.content_security_policy do |policy|
...
1
vote
0
answers
440
views
Why is the ssl_session_id being regenerated for some requests and reused for others in nginx?
I have containerized and deployed my angular app to nginx. I want to send a Content-Security-Policy header with a nonce. I am using $ssl_session_id for the nonce from nginx.
I am able to pass the ...