Skip to content

Conversation

@crispy101
Copy link
Contributor

Description of the proposed changes

  • include cspObject property to specify CSP file

⚠️ Please make sure the changes adhere to the guidelines mentioned here

Notes to reviewers

🛈 When you've finished leaving feedback, please add a final comment to the PR tagging the author, letting them know that you have finished leaving feedback

Copy link
Contributor

@aaronmedina-dev aaronmedina-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Suggestion (not a deal breaker), we could consider a default fallback value for cspObject when it's not defined for readabilit?

@crispy101
Copy link
Contributor Author

LGTM.

Suggestion (not a deal breaker), we could consider a default fallback value for cspObject when it's not defined for readabilit?

Sounds sensibel.
Curretly, cspObject defaults to csp.txt. The fallbackCsp string is the fall-back CSP when the txt file is not found/readable. We can make fallbackCsp deafult to some string in this construct in case of everything missing.

@crispy101 crispy101 merged commit d7f7be8 into main May 1, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants