I am using the spring cloud gateway to run my angular application. The API gateway also acts as an entry point to the underlying microservices.
I have one microservice which is built on spring-web and one interceptor enables HSTS in the response headers.
My angular application has some static files. When these files are requested, the response headers do not have HSTS enabled. Any network calls to the micro-services do have the HSTS in the response headers.
This is a call to a micro-service and the response headers have HSTS
Is there anything to be configured in the spring cloud gateway for static pages? Please help


I added the below filter and it works.