beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

CorsProxy Op

Ops.Net.CorsProxy


CorsProxy
Namespace: Ops.Net

Op author: stephan

There is a newer version of this op!


This version will not receive any updates. It is recommended to use a newer version.

Current version: Ops.Net.CorsProxy_v2

create a cables.gl CORS proxy URL


summary (oneliner)

Prefixes the given URL with the URL of the cables.gl CORS proxy.
The resulting URL can be used in any request to circumevents Same-Origin-Policy restrictions.
The proxy itself does not store or alter the data received from the server.



doc

issues

example patch id

youtube id

caniuse query

collections

related ops

Inputs

url (Number)

Outputs

Result (Number)

Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save

Weather API - Example

Makes a request to the MetaWeather API and displays the current temperature.
We use a CORS-proxy here to overcome security-problems between HTTP and HTTPS.

To change the city run this in your browser: https://www.metaweather.com/api/location/search/?query=berlin, change the last part (city) and copy the woeid from the response to `Location ID.

Open Example In Editor


Patches using CorsProxy