Class CrossOriginEmbedderPolicyConfiguration

java.lang.Object
org.apache.wicket.coep.CrossOriginEmbedderPolicyConfiguration

Specifies the configuration for Cross-Origin Embedder Policy to be used for CrossOriginEmbedderPolicyRequestCycleListener. Users can specify the paths that should be exempt from COEP and one of 3 modes (REPORTING, ENFORCING, DISABLED) for the policy. The config object lives in SecuritySettings, users can specify their COOP preferences with the following lines in their application's WebApplication.init() method:
 @Override
 protected void init()
 {
        // ...
        getSecuritySettings().setCrossOriginEmbedderPolicyConfiguration(CoepMode.REPORTING,
                "EXEMPTED PATHS");
        // ...
 }
 
The config value will be read once at startup in Application.initApplication(), changing the configuration at runtime will have no effect of the COOP headers set.
Author:
Santiago Diaz - saldiaz@google.com, Ecenaz Jen Ozmen - ecenazo@google.com
See Also: