Description
The way the http-proxy is used in the application need to be changed and improved to guarantee more automation, better flexibility and exempting also users from interacting with certain concepts CORS related.
At the moment, the application proxy is used by default for all Ajax requests cross domain. If the requested base URL is specified in the useCORS configuration, then MS assumes that CORS headers are enabled and allowed for the origin and the proxy is not used automatically.
There are also different behaviors on how layers tile requests are performed based on the mapping library, e.g.:
- OpenLayers by default doesn't use the proxy for loading layer tiles
- Cesium by default configures the proxy based on the global proxyUrl property in localConfig.json
With this issue it is requested to change the current behavior to not use the proxy by default (1) and let the MS application to automatically establish when the use of the proxy is necessary through a proper logic depending on the request.
Acceptance criteria
Other useful information
As a consequence of this implementation the PR #10474 and the connected issue become out of date and can be closed with a comment.
Description
The way the http-proxy is used in the application need to be changed and improved to guarantee more automation, better flexibility and exempting also users from interacting with certain concepts CORS related.
At the moment, the application proxy is used by default for all Ajax requests cross domain. If the requested base URL is specified in the useCORS configuration, then MS assumes that CORS headers are enabled and allowed for the origin and the proxy is not used automatically.
There are also different behaviors on how layers tile requests are performed based on the mapping library, e.g.:
With this issue it is requested to change the current behavior to not use the proxy by default (1) and let the MS application to automatically establish when the use of the proxy is necessary through a proper logic depending on the request.
Acceptance criteria
The specified URL is not secure as it uses HTTP. An URL using HTTPs protocol should be provided. Using HTTP, requests will be handled automatically to prevent browser security issues by passing through the proxy.Force proxy(Layer Settings) and theAllow not secure layers(Catalog tool for WMS/WFS sources) are no longer needed and the logic can be removedOther useful information
As a consequence of this implementation the PR #10474 and the connected issue become out of date and can be closed with a comment.