sharenowTech / openAPI

Documentation on the openAPI of the car2go system
https://www.car2go.com
58 stars 10 forks source link

CORS is missing #9

Open kai-breitbarth-zz opened 8 years ago

kai-breitbarth-zz commented 8 years ago

If you try to access the API within another side (e.g. JQuery) you'll get “No 'Access-Control-Allow-Origin' header is present on the requested resource”.

To allow Cross-Origin Resource Sharing you"ll need to add

Access-Control-Allow-Origin: *

on server side.

ghost commented 8 years ago

Hi,

so far the API was designed to integrate the functionality in own apps or stand alone applications but not on other web pages. Therefore we do not support CORS right now.

Regards - mat