Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disable nonce creation by default #942

Merged
merged 1 commit into from
Jan 21, 2025
Merged

Conversation

ctron
Copy link
Collaborator

@ctron ctron commented Jan 21, 2025

As the nonce should be unique per request, it doesn't make sense to enable this by default, as that requires additional work on the serving side.

On the other side, having a (static) random value isn't correct either.

So we keep the current logic, but disable nonce generation by default, making it opt-in.

Closes #941

@hrzlgnm
Copy link

hrzlgnm commented Jan 21, 2025

Would you mind also adding an example for

[build]
create_nonce = false

To the example Trunk.toml here in the repo while at it?

@ctron ctron added this pull request to the merge queue Jan 21, 2025
As the nonce should be unique per request, it doesn't make sense to
enable this by default, as that requires additional work on the serving
side.

On the other side, having a (static) random value isn't correct either.

So we keep the current logic, but disable nonce generation by default,
making it opt-in.

Closes trunk-rs#941
@ctron ctron removed this pull request from the merge queue due to a manual request Jan 21, 2025
@ctron ctron enabled auto-merge January 21, 2025 12:59
@ctron ctron added this pull request to the merge queue Jan 21, 2025
Merged via the queue into trunk-rs:main with commit da15f3f Jan 21, 2025
60 checks passed
@ctron ctron deleted the hotfix/fix_941_1 branch January 21, 2025 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trunk 0.21.6 causes CORS related issues when used with tauri, which causes CSS attributes not being applied
2 participants