daniel-schroeder-io / SeniorCapstone

A repository for senior capstone
0 stars 1 forks source link

Add JSONP for cross-domain information requests. #261

Closed jackrwoods closed 6 years ago

jackrwoods commented 6 years ago

This adds a JSONP route for cross-domain data requests. Due to Cross-Domain Resource Sharing policies, JavaScript apps on other domains cannot request data without using JSONP. Click here for more info.

jackrwoods commented 6 years ago

I've found that this route works the exact same as "getBuildingData" if no "callback" is specified in the url of the request. I think we should, instead of adding a new route, edit the current one to support JSONP.