All Downloads are FREE. Search and download functionalities are using the official Maven repository.

play.filters.csp.CSPAction Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) from 2022 The Play Framework Contributors , 2011-2021 Lightbend Inc. 
 */

package play.filters.csp;

import javax.inject.Inject;

/**
 * This action is used to add a CSP header to the response through injection.
 *
 * 

Normally you would use the annotation {@code @CSP} on your action rather than use this * directly. */ public class CSPAction extends AbstractCSPAction { private final CSPProcessor processor; @Inject public CSPAction(CSPProcessor processor) { this.processor = processor; } @Override public CSPProcessor processor() { return processor; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy