-
Notifications
You must be signed in to change notification settings - Fork 34
Closed
Labels
dependency/springTask is related to Spring FrameworkTask is related to Spring Frameworkimpact/deployManual actions will be required during deploymentManual actions will be required during deploymentrefactoring
Milestone
Description
Let's make usage of CDN configurable via dedicated property. It simplifies the testing of CSP with CDN locally.
The following places should be updated to use this property:
mystamps/src/main/java/ru/mystamps/web/support/spring/security/SecurityConfig.java
Line 83 in 6dcb3f4
boolean useSingleHost = !environment.acceptsProfiles("prod"); Line 76 in 6dcb3f4
viewResolver.setStaticVariables(resourcesAsMap(productionEnv)); setStaticVariables()
and later pass it toResourceUrl.exposeWebjarResourcesToView()
)- all application-*.properties files should be updated as well -- CDN should be enabled only for "prod" profile
- let's use
Environment.getProperty()
withtrue
as a default value (to ensure that we don't break production)
Metadata
Metadata
Assignees
Labels
dependency/springTask is related to Spring FrameworkTask is related to Spring Frameworkimpact/deployManual actions will be required during deploymentManual actions will be required during deploymentrefactoring