Commit 474d143f authored by Matija Obreza's avatar Matija Obreza
Browse files

CORS on web fonts required in Chrome and FF

parent 2ed41202
......@@ -173,6 +173,8 @@ public class WebConfiguration extends WebMvcConfigurerAdapter {
// .allowedHeaders("header1", "header2", "header3")
// .exposedHeaders("header1", "header2")
// .allowCredentials(false).maxAge(3600);
registry.addMapping("/html/**").allowCredentials(false).allowedMethods("GET", "OPTIONS", "HEAD").allowedOrigins(baseUrl);
}
public MappingJackson2HttpMessageConverter jacksonMessageConverter() {
......
......@@ -226,7 +226,7 @@
//The document and all resources are loaded
window.onload = function() {
$(".genesys-page #content .intro"). css("background-image", "url( '<c:url value="/html/1/images/welcome-bg.png" />' )");
$(".genesys-page #content .intro"). css("background-image", "url( '<c:url value="${cdnServers.next}/html/1/images/welcome-bg.png" />' )");
};
$( document ).ready(function() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment