You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since ContentSecurityPolicy is a class and the various functions affect the store policies, they should all be marked with @discardableResult. This allows you to do things like:
letcsp= ContentSecurityPolicy =ContentSecurityPolicy().defaultSrc("self")
if env ==.production {
csp.blockAllMixedContent()}
This currently works but produces a warning since you aren't using the result of blockAllMixedContent.
The text was updated successfully, but these errors were encountered:
Since
ContentSecurityPolicy
is a class and the various functions affect the store policies, they should all be marked with@discardableResult
. This allows you to do things like:This currently works but produces a warning since you aren't using the result of
blockAllMixedContent
.The text was updated successfully, but these errors were encountered: