-
Notifications
You must be signed in to change notification settings - Fork 590
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
Add Content Security Policy (CSP) to enhance security #1118
base: master
Are you sure you want to change the base?
Add Content Security Policy (CSP) to enhance security #1118
Conversation
* add: patrick * Update public/data/developer_assets.json Co-authored-by: Shyam Tawli <[email protected]> --------- Co-authored-by: Shyam Tawli <[email protected]>
Co-authored-by: Shyam Tawli <[email protected]>
Co-authored-by: Shyam Tawli <[email protected]>
Co-authored-by: Shyam Tawli <[email protected]>
* Added my profile (https://github.com/Erick-WG) * add: Erick-WG * Delete .vscode/settings.json * Update ProfilesList.json --------- Co-authored-by: Shyam Tawli <[email protected]>
Co-authored-by: Shyam Tawli <[email protected]>
Co-authored-by: Shyam Tawli <[email protected]>
* add: Ag-neta * add: Ag-neta
Co-authored-by: Shyam Tawli <[email protected]>
* add: Atharv Dalal * Update ProfilesList.json
Co-authored-by: Shyam Tawli <[email protected]>
Co-authored-by: Eman Ali Abbasi <[email protected]>
* Added profile * Update package-lock.json
* Create Sahilll15.json * Update ProfilesList.json * Update Sahilll15.json Co-authored-by: Shyam Tawli <[email protected]> --------- Co-authored-by: Shyam Tawli <[email protected]>
Co-authored-by: Shyam Tawli <[email protected]>
…yamtawli#990 (shyamtawli#1029) * make skill section on user profile responsive * update * make skill section responsive * update * update * resolve conflit
Co-authored-by: Shyam Tawli <[email protected]>
Co-authored-by: Shyam Tawli <[email protected]>
* ankit mourya * ankit mourya change style * change in contact us and deleted pakage
Co-authored-by: Shyam Tawli <[email protected]>
Co-authored-by: Shyam Tawli <[email protected]>
* Update App.js * Update Search.jsx * fixed search issue * improve ui --------- Co-authored-by: Shyam Tawli <[email protected]>
Co-authored-by: Shyam Tawli <[email protected]>
* Added Sai Pradyumna Goud Chiragoni * Updated ProfilesList.json --------- Co-authored-by: Shyam Tawli <[email protected]>
Co-authored-by: Shyam Tawli <[email protected]>
Co-authored-by: grappo <[email protected]> Co-authored-by: Shyam Tawli <[email protected]>
Co-authored-by: Shyam Tawli <[email protected]>
Co-authored-by: Shyam Tawli <[email protected]>
Co-authored-by: Shyam Tawli <[email protected]>
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job, @usernayeem! 🎉 Thank you for opening a pull request. Your contribution is valuable and we appreciate your efforts to improve our project.
Soon the maintainers/owner will review it and provide you with feedback/suggestions.
Description
This pull request introduces a Content Security Policy (CSP) to the devFind application. The CSP is designed to enhance the security of the application by restricting the sources from which content can be loaded. This helps to reduce the risk of cross-site scripting (XSS) and other injection attacks.
Related Issues
#1117
Changes Proposed
default-src 'none';
: Disallows all content by default.script-src 'self' 'unsafe-inline';
: Allows scripts only from the same origin and inline scripts.style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;
: Permits styles from the same origin, inline styles, and Google Fonts.font-src 'self' https://fonts.gstatic.com;
: Restricts font loading to the same origin and Google Fonts.img-src 'self' https://github.com/ https://avatars.githubusercontent.com/ https://pbs.twimg.com;
: Allows images from the same origin, GitHub, and Twitter.manifest-src 'self';
: Restricts the web app manifest to the same origin.connect-src 'self';
: Limits network connections to the same origin.base-uri 'self';
: Ensures that the base URL is restricted to the same origin.form-action 'self';
: Restricts form submissions to the same origin.Checklist
Screenshots
Note to reviewers
Please review the CSP configuration to ensure it does not inadvertently block legitimate content. Testing across various environments is recommended to verify that all functionality remains intact while enhancing security.