mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	feat: Add HSTS headers to response (#725)
This commit is contained in:
		| @ -25,6 +25,7 @@ impl actix_web::ResponseError for ApiErrorResponse { | ||||
|  | ||||
|         actix_web::HttpResponseBuilder::new(self.status_code()) | ||||
|             .insert_header((header::CONTENT_TYPE, mime::APPLICATION_JSON)) | ||||
|             .insert_header((header::STRICT_TRANSPORT_SECURITY, "max-age=31536000")) | ||||
|             .insert_header((header::VIA, "Juspay_Router")) | ||||
|             .body(self.to_string()) | ||||
|     } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Kartikeya Hegde
					Kartikeya Hegde