-
Notifications
You must be signed in to change notification settings - Fork 48
Closed
Description
Hi,
I am using this for one of my projects. Below is my java configuration:
@Configuration
public class SEOFilterConfig {
@Value("${prerender.service.url}")
private String prerenderServiceUrl;
@Bean
public FilterRegistrationBean someFilterRegistration() {
FilterRegistrationBean registration = new FilterRegistrationBean();
registration.setFilter(seoFilter());
registration.setName("prerender");
registration.addUrlPatterns("/*");
registration.addInitParameter("prerenderServiceUrl", prerenderServiceUrl);
registration.addInitParameter("prerenderToken", "mytoken");
return registration;
}
@Bean(name = "seoFilter")
public Filter seoFilter() {
return new PreRenderSEOFilter();
}
}
My pom is as follows:
<dependency>
<groupId>com.github.greengerong</groupId>
<artifactId>prerender-java</artifactId>
<version>1.6.4</version>
</dependency>
Everything is working but there is only one problem, all my urls are getting converted to non-https before being submitted to prerender service as I can see in https://prerender.io/crawl-stats here.
Please suggest a way out of this. Thanks.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels