From 4d8bec5d0a56dd8fefaf3783ed57ae65139525cc Mon Sep 17 00:00:00 2001 From: gchatz22 <44476526+gchatz22@users.noreply.github.com> Date: Tue, 28 Jul 2020 16:52:50 +0300 Subject: [PATCH 1/5] Cspinterceptor (#2) Support for CSP in Struts 2: - Implements a CSP Interceptor that adds a nonce-based, strict-dynamic policy to HTTP responses. - Implements custom JSP and FTL diff --git a/core/src/main/resources/template/simple/script.ftl b/core/src/main/resources/template/simple/script.ftl new file mode 100644 index 000000000..f16653257 --- /dev/null +++ b/core/src/main/resources/template/simple/script.ftl @@ -0,0 +1,63 @@ +<#-- +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +--> +<#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" /> +<#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" /> +