We need to display insecure content inside secure content ( an http://some-page.com iframe ) inside an https page. Therefore we need to add a rule to http-proxy-middleware which is part of our stack that would catch urls of a specific pattern ( https://our-domain.com/:company-1232343/preview ) and route them to http://company-1232343.com . The company-id part of the url is dynamic. I looked into the examples and recipes of https://github.com/chimurai/http-proxy-middleware#table-of-contents but not sure what the rule will look like.
http-proxy-middleware
https://our-domain.com/:company-1232343/preview
company-id
1.4m articles
1.4m replys
5 comments
57.0k users