Skip to content

Conversation

@dontgitit
Copy link
Contributor

@dontgitit dontgitit commented Oct 1, 2025

resolves #3719

@netlify
Copy link

netlify bot commented Oct 1, 2025

Deploy Preview for zio-http ready!

Name Link
🔨 Latest commit 33b6377
🔍 Latest deploy log https://app.netlify.com/projects/zio-http/deploys/691466f046afc20008cb1303
😎 Deploy Preview https://deploy-preview-3720--zio-http.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@CLAassistant
Copy link

CLAassistant commented Oct 1, 2025

CLA assistant check
All committers have signed the CLA.

@dontgitit dontgitit force-pushed the multiple-csp-directives branch from ba96aa3 to 1b07100 Compare October 1, 2025 08:01

final case class Host(uri: URI) extends Source
object Source {
case object none extends Source {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wonder if while we're at it, this should be changed to None to be consistent with all the others?

Copy link
Contributor

Choose a reason for hiding this comment

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

We can't change this. That would be a breaking change

@dontgitit dontgitit force-pushed the multiple-csp-directives branch from e8306a2 to 33e9fbb Compare October 1, 2025 09:03
undo some formatting changes

use List instead of Seq

remove unused import
@987Nabil 987Nabil force-pushed the multiple-csp-directives branch from 33e9fbb to 33b6377 Compare November 12, 2025 10:52

// scalafmt: { maxColumn = 180 }
sealed trait ContentSecurityPolicy extends Header {
final case class ContentSecurityPolicy(directives: List[ContentSecurityPolicy.Directive]) extends Header {
Copy link
Contributor

Choose a reason for hiding this comment

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

This change is not binary compatible. We can't do that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure how to implement this change without breaking binary compatibility...

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.

support for multiple Content-Security-Policy directives via typed headers

3 participants