Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/gbfs_map/mod.js>GbfsMap.toCorsUrl

A library for displaying GBFS port data on a map. https://gbfs-map-demo.deno.dev
Latest
method GbfsMap.toCorsUrl
import { GbfsMap } from "https://deno.land/x/gbfs_map@v2.3.1/mod.js";

Creates a CORS proxy URL that will be used if x-cors is specified. Override here if you want to use any CORS proxy. By default https://cors.deno.dev is used.

import { GbfsMap } from "https://deno.land/x/gbfs_map/mod.js";
GbfsMap.toCorsUrl = url => `https://my-cors-proxy/${url}`