paragonie / csp-builder

Build Content-Security-Policy headers from a JSON file (or build them programmatically)
https://paragonie.com/projects
MIT License
544 stars 39 forks source link

what is the use for "type" policies param ? #32

Closed ncou closed 6 years ago

ncou commented 6 years ago

Hi,

Nice work. Just a silly question ? what is the use of the 'type' policies ? when i look at the code i don't understand. I have see the plugin use some types, but it doesn't look the same as the 'types' referenced here : https://github.com/paragonie/csp-builder/blob/master/src/CSPBuilder.php#L742

Can you explain me ? i have found nothing about this node in the json example you have provided.

Thank you.

paragonie-scott commented 6 years ago

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/plugin-types

ncou commented 6 years ago

Thank you