datopian / frontend-v2

CKAN / Data Portal frontend as microservice in pure Javascript (Node).
http://tech.datopian.com/frontend/
MIT License
38 stars 18 forks source link

[fix][xs] Fixing external resources fetching over unsecured connection #179

Closed gavram closed 4 years ago

gavram commented 4 years ago

@anuveyatsu Please, can you review this?

This fixes reopened issue https://gitlab.com/datopian/core/support/-/issues/249#note_403404895.

Some of the resources, for which we are fetching data for the text view, are externally linked over HTTP. With this change, we first check the protocol, and after that fetch data over that protocol (HTTP or HTTPS)