Angular 4 new HttpClient content-disposition header
I had the same Issue and found this https://stackoverflow.com/a/45482346/1909698
It worked for me after adding 'Access-Control-Expose-Headers': 'Content-Disposition'
in my backend response header.
if your backend is using SpringSecurity
you need add ExposeHeader
to configuration source:
@Beanprotected CorsConfigurationSource corsConfigurationSource() { CorsConfiguration configuration = new CorsConfiguration(); configuration.addExposedHeader("Content-Disposition"); return source;}