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
2.1m questions
2.1m answers
60 comments
57.0k users