Skip to content

Converts my https urls to http before submitting to the Prerender Service #44

@kgujral

Description

@kgujral

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions