Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upwebapp meteor/browser-policy can't find a way to set nonce #11031
Labels
Comments
|
If it's a wrong place to submit this issue please guide me where is the best place to submit it. |
|
I guess this is the function to blame
|
|
Hi @ivan133 are you willing to write a PR to solve this issue? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This bug report should include:
I'm using meteor 1.10.1
Not sure
Ubuntu Linux 18.04
I'm setting nonce in CSP using browser-policy like this
I expect it to be added as is:
"script-src 'self' nonce-zhmhehgjftfs6cmbx
But meteor/browser-policy checks if it's starts with http / https and if not it adds it.
So I get
"script-src 'self' http://nonce-zhmhehgjftfs6cmbx https://nonce-zhmhehgjftfs6cmbx;
Is there a way to set it up without http?
(example: A GitHub repository that anyone can clone to observe the problem.)