Campaign: Using Data

No 'Access-Control-Allow-Origin' header is present on the reques

Hi, I had a little app working until just two days ago, when I started receiving a CORS error: "No 'Access-Control-Allow-Origin' header is present on the requested resource". I tried adding the jsonp callback to no avail. I am able to access the generated url via the browser. What I am doing is generating state options for a select list. The offending function, getStateList(), can be seen at: https://github.com/Code-for-Miami/iam1of.us/blob/master/js/script.js#L97 ...more »

Submitted by

Voting

2 votes
2 up votes
0 down votes
Active

Campaign: Using Data

No 'Access-Control-Allow-Origin' header is present on the reques

Hi, I had a little app working until just two days ago, when I started receiving a CORS error: "No 'Access-Control-Allow-Origin' header is present on the requested resource". I tried adding the jsonp callback to no avail. I am able to access the generated url via the browser. What I am doing is generating state options for a select list. The offending function, getStateList(), can be seen at: https://github.com/Code-for-Miami/iam1of.us/blob/master/js/script.js#L97 ...more »

Submitted by

Voting

2 votes
2 up votes
0 down votes
Active

Campaign: API Technical Discussions

Ignore unknown paramaters

the api should simply ignore any parameter it doesn't understand instead of throwing an error. For example jquery will append _=randomNumber to prevent caching of jsonp by the browser. This feature breaks that.

Submitted by

Voting

4 votes
4 up votes
0 down votes
Active

Campaign: API Technical Discussions

Ignore unknown paramaters

the api should simply ignore any parameter it doesn't understand instead of throwing an error. For example jquery will append _=randomNumber to prevent caching of jsonp by the browser. This feature breaks that.

Submitted by

Voting

4 votes
4 up votes
0 down votes
Active

Campaign: API Technical Discussions

JSONP Callback

The jsonp callback should be 'callback' not 'jsonp' there is no reason you can't have both, but almost every single site that uses jsonp uses callback as the parameter, using something weird prevents people from easily making apps.

Submitted by

Voting

4 votes
4 up votes
0 down votes
Active

Campaign: API Technical Discussions

JSONP Callback

The jsonp callback should be 'callback' not 'jsonp' there is no reason you can't have both, but almost every single site that uses jsonp uses callback as the parameter, using something weird prevents people from easily making apps.

Submitted by

Voting

4 votes
4 up votes
0 down votes
Active