bcgov / BCHeritage

Branch level repository for documentation and product issues.
Apache License 2.0
4 stars 0 forks source link

Enable CORS for BCGW Overlay / Base Map requests #193

Closed bferguso closed 1 month ago

bferguso commented 2 years ago

Overlays and base maps are served by BCGW WMS, which is not at the same domain as the Arches applications. Need to enable CORS in the headers to allow overlay/base map requests.

For Dev the workaround is to disable the CORS headers checking.

Created a sub-class of the TileserverProxyView which redirects to multiple servers based on the tile server request.

A request parameter called source is used to direct the traffic to the appropriate tile server (WMS).

Valid source values are:

If no value is specified the default is openmaps.gov.bc.ca.

Outbound traffic to the WMSs is through a forward proxy configuration.

bferguso commented 1 year ago

Potential option is to use Arches proxy to retrieve this data. Do headers follow through?

bferguso commented 1 year ago

BCRHP deployed to LEGACY. Waiting to hear about window to refresh Fossils.

bferguso commented 1 year ago

Applied fix to allow proxying of tiles from local server which does not require/allow outgoing proxy and BCGW tileserver requests which requires an outgoing proxy.

bferguso commented 1 month ago

Marking as complete and now in Prod.