Replies: 3 comments 11 replies
-
Hey Buddy, I think the object or a string. It is basically because some people prefer to put all header value as a string while others want to have better and clearer approach of an object. If you are encountering issues that are opposite to what documentation says, it is a bug and we should fix it. However the main intention is to allow users to set different headers per route as there might be different cases that we are not aware off (let's say and embedded checkout or google maps embed, etc) |
Beta Was this translation helpful? Give feedback.
-
Agree, this has to be done super carefully... |
Beta Was this translation helpful? Give feedback.
-
The feature was implemented and released. Amazing work as always @vejja 💚 |
Beta Was this translation helpful? Give feedback.
-
Hi @Baroshem
I would like to have your opinion on per-route functionalities in the module.
Currently the doc says that it's possible to define per-route CSP via the router's
headers
property:However
1- TS does not like 'Content-Security-Policy' other than
string
2- The module does not support the functionality: the header value is set as
Content-Security-Policy: [Object object]
What is your intention for per-route functionality ?
Should 'Content-Security-Policy' be provided as a
string
or as aContentSecurityPolicy
object ?Beta Was this translation helpful? Give feedback.
All reactions