farrellmr
farrellmr

Reputation: 1905

Adding to request header?

Im using tomcat\spring security and in the test environment I need to add a parameter to my HEADER for selenium testing

What are my options for simluting this in my dev environment?

The issue with the filter is that I will have to ensure it is only on my dev environment, and the proxy is extra configuration

Upvotes: 0

Views: 122

Answers (1)

Jeff
Jeff

Reputation: 1945

If you are using Spring profiles you could annotate that filter with @Profile("dev") and it will only be loaded when the dev profile is active. More info: http://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-profiles.html#boot-features-profiles

Upvotes: 2

Related Questions