ankane / chartkick

Create beautiful JavaScript charts with one line of Ruby
https://chartkick.com
MIT License
6.33k stars 565 forks source link

Enchancement for CSP support. #618

Open kumarpradeephk opened 6 months ago

kumarpradeephk commented 6 months ago

Fixed CSP Issue:

This PR brings enhancements to support Content Security Policy (CSP):

  1. Resolved a Content Security Policy (CSP) issue to ensure secure content loading and adherence to security best practices.

  2. Verified that all existing tests pass successfully to maintain the stability and reliability of the codebase.

  3. Refactored the code to replace inline styles with CSS classes for improved maintainability and adherence to coding standards.

  4. Introduced a dependency on Nokogiri to enhance HTML parsing capabilities. This dependency is necessary for parsing HTML, and it aligns with the project's requirements.