Add support for external CDN references

This commit is contained in:
Paulo Gustavo Veiga
2022-01-12 16:09:28 -08:00
parent 451c181fd6
commit 75997b11b3
4 changed files with 13 additions and 10 deletions

View File

@@ -36,6 +36,9 @@ public class RequestPropertiesInterceptor extends HandlerInterceptorAdapter {
@Value("${google.recaptcha2.enabled}")
private Boolean recaptcha2Enabled;
@Value("${site.static.js.url}")
private String siteStaticUrl;
@Value("${google.recaptcha2.siteKey}")
private String recaptcha2SiteKey;
@@ -61,6 +64,8 @@ public class RequestPropertiesInterceptor extends HandlerInterceptorAdapter {
request.setAttribute("google.recaptcha2.siteKey", recaptcha2SiteKey);
request.setAttribute("site.homepage", siteHomepage);
request.setAttribute("site.static.js.url", siteStaticUrl);
request.setAttribute("security.type", securityType);
// If the property could not be resolved, try to infer one from the request...