Remove HTTP URL trickery #4087
Labels
addition: change request
priority: low
type: adaptive
Adaptive maintenance. Changes to environment/standards
Parts of the RAMP core will generate certain URLs using the protocol that the host site is in. In particular, the URL to the ESRI JS API and the ESPG projection lookup service (if no urls are supplied in the config, which is typical case).
Since
http
is now becoming less common, and CORS is more common, we are finding this url logic can cause CORS errors when attempting to access thehttp
version of those services. Most notably when attempting to run RAMP in develoment mode usinglocalhost
. We could probably config ourrush
scripts to serve viahttps
but this could also happen in anyhttp
host sites, as well it would not be shocking if those two services depreciated theirhttp
endpoints.Remove the trickery. Always use the
https
version of those URLs.epsg.feature.ts
config.service.js
global.registry.js
(not used but clean it up anyways).Note there is also some stuff in
loader-service.directive.js
, but I think we should leave this as is, since the affected URL is user supplied andhttp
may be valid in niche scenarios.The text was updated successfully, but these errors were encountered: