Linked Questions
314 questions linked to/from What is JSONP, and why was it created?
425
votes
4
answers
148k
views
Can anyone explain what JSONP is, in layman terms? [duplicate]
I know JSONP is JSON with padding.
I understand what JSON is, and how to use it with jQuery.getJSON(). However, I do not understand the concept of the callback when introducing JSONP.
Can anyone ...
36
votes
3
answers
177k
views
How to make cross domain request [duplicate]
As you know, the security of the web browser disallows making of cross domain requests. I read a book which says that you should use XMLHTTPRequest only if you can put the files on the server (means ...
13
votes
1
answer
30k
views
What Is Difference Between Json and Jsonp? [duplicate]
I am trying to access cross origin site via script.
So I am getting an error, I have searched on internet that shows the solution is the JsonP.
Anyone Please help me to know what is jsonp .
and ...
10
votes
3
answers
5k
views
Explanation and usage of JSONP [duplicate]
Possible Duplicate:
Please explain JSONP
What is JSONP, why is it needed, and what are some real world examples of it's usage.
6
votes
1
answer
4k
views
What is the difference between JSON and JSONP? [duplicate]
Possible Duplicate:
Please explain JSONP
For example in the jQuery documentation I find both JSON and JSONP mentioned. What is the difference exactly? How can I see which is which? Which one ...
2
votes
1
answer
4k
views
Angular 2 JSONP, injected script did not invoke callback [duplicate]
I'm using Angular 2.RC4 and typescript
I have class with data:
import {Injectable, Injector, ReflectiveInjector} from '@angular/core';
import {
Http, Response, Headers, RequestOptions, ...
3
votes
1
answer
2k
views
Use jQuery.getJson to get Web API [duplicate]
I'm a beginner of ASP.NET Web API.
Fail to use jQuery.getJson() to get ASP.NET Web API
this failed:
var url = "http://localhost:56110/api/Values";
$.getJSON(url, function (data) {
$(&...
3
votes
0
answers
1k
views
MIME type ('text/html') is not executable, and strict MIME type checking is enabled - Angular 2 [duplicate]
I am trying to make a JSONP call in Angular 2, but every time I am getting this error:
Refused to execute script from 'https://www.linkedin.com/oauth/v2/authorization?response_type=code&...
1
vote
2
answers
862
views
Refused to execute script on jsonp request [duplicate]
I'm making a jsonp request and I get this error Refused to execute script from 'https://myurl/test.php?callback=%27callback%27' because its MIME type ('text/html') is not executable, and strict MIME ...
-1
votes
1
answer
1k
views
Enabling CORS in header (php) are not working on wordpress website [duplicate]
I'm trying to send a request and get a response from another website using jquery. Request is sent and i've got 200. But I cant get a response message from the server and what I see evretime is that ...
2
votes
2
answers
221
views
Javascript Which Uses XMLHTTP Request To PHP File On Same Host Violates Same-Origin Policy? [duplicate]
Possible Duplicate:
Please explain JSONP
On page 'www.foo.com', can a script loaded from 'www.example.com' send ajax requests to 'www.example.com'?
I need to make a ...
0
votes
1
answer
717
views
Uncaught SyntaxError: Unexpected token < [duplicate]
jsonp = (url, callback) => {
var callbackName = 'jsonp_callback_' + Math.round(100000 * Math.random());
window[callbackName] = function(data) {
delete window[...
-1
votes
1
answer
326
views
Uncaught SyntaxError: Unexpeted token ':' [duplicate]
I have googled the life out of the search engine and am unable to find a fix for my error 'Uncaught SyntaxError: Unexpected token ':' all I am trying to do is open JSON file from js folder. here ...
-2
votes
2
answers
87
views
JSON wrapped in NULL? [duplicate]
I'm using the API of an affiliate network (Sovrn), expecting to retrieve a product's specification using the URL.
As per their documentation, I use:
url = 'URL-goes-here'
headers = {
"accept&...
0
votes
0
answers
129
views
Yummly API Call Javascript JSONP [duplicate]
I need some basic help figuring out how to make a call to the Yummly API.
I understand JSON is not JSONP and I'm trying to understand the difference but I'm really struggling because I'm not even sure ...