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

[Feature]: Add CSP #53

Closed
SARDONYX-sard opened this issue Feb 7, 2024 · 1 comment
Closed

[Feature]: Add CSP #53

SARDONYX-sard opened this issue Feb 7, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@SARDONYX-sard
Copy link
Owner

SARDONYX-sard commented Feb 7, 2024

Expected behavior

I'd like to set up a CSP but couldn't do it as I wanted.

  • tauri.conf.json
    "security": {
      "dangerousDisableAssetCspModification": ["style-src"],
      "csp": "default-src 'self';script-src 'self' 'strict-dynamic' 'unsafe-inline';worker-src 'self' 'strict-dynamic' 'blob:https://tauri.localhost/*';style-src 'self' 'unsafe-inline'; img-src 'self' https: asset: data:"
    }

Set CSP and restrict content.

other

No response

@SARDONYX-sard SARDONYX-sard added the enhancement New feature or request label Feb 7, 2024
@SARDONYX-sard
Copy link
Owner Author

Gave up because it was not possible to set up a CSP that would maintain the existing permit status.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant