Skip to content

Conversation

@warnyul
Copy link
Owner

@warnyul warnyul commented Dec 9, 2024

  • Dependencies:

    • Added @melloware/csp-webpack-plugin for improved CSP handling.
    • Introduced dompurify for safer DOM manipulation.
    • Added trusted-types to enhance script security.
  • Webpack Configuration:

    • Replaced custom CSP plugin with @melloware/csp-webpack-plugin.
    • Configured crossOriginLoading: 'anonymous' for improved script integrity.
  • Caching:

    • Updated Cache-Control header values to include both max-age and s-maxage for enhanced caching strategies.
  • Other Changes:

    • Updated package.json and package-lock.json to reflect added and updated dependencies.
    • Integrated stricter CSP policies with subresource integrity.

Impact:

  • Strengthens security against XSS attacks.
  • Optimizes caching and delivery of static assets.
  • Aligns project with modern web security standards.

- **Dependencies**:
  - Added `@melloware/csp-webpack-plugin` for improved CSP handling.
  - Introduced `dompurify` for safer DOM manipulation.
  - Added `trusted-types` to enhance script security.

- **Webpack Configuration**:
  - Replaced custom CSP plugin with `@melloware/csp-webpack-plugin`.
  - Configured `crossOriginLoading: 'anonymous'` for improved script integrity.

- **Caching**:
  - Updated `Cache-Control` header values to include both `max-age` and `s-maxage` for enhanced caching strategies.

- **Other Changes**:
  - Updated `package.json` and `package-lock.json` to reflect added and updated dependencies.
  - Integrated stricter CSP policies with subresource integrity.

**Impact**:
- Strengthens security against XSS attacks.
- Optimizes caching and delivery of static assets.
- Aligns project with modern web security standards.
@warnyul warnyul added the do not merge Indicates the pull request is not ready to be merged due to pending reviews, testing, or blockers. label Dec 9, 2024
@warnyul warnyul self-assigned this Dec 9, 2024
@github-actions
Copy link

github-actions bot commented Dec 9, 2024

Visit the preview URL for this PR (updated for commit 991e64c):

https://bvarga-fe600--pr84-csp-2-0qs98x2e.web.app

(expires Mon, 16 Dec 2024 08:34:57 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: a3b1098a9eaf0750a134a339972f1df2a3969a8d

@warnyul warnyul marked this pull request as draft December 9, 2024 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Indicates the pull request is not ready to be merged due to pending reviews, testing, or blockers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants