cancel
Showing results for 
Search instead for 
Did you mean: 

using JSONscriptRequest for cross domain calls?

Former Member
0 Kudos

Hi,

Looking through the REST SDK I see mention of the "JSONscriptRequest class" but I don't find much else about it.

Is this a jsonp callback and how can it be used?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member197488
Participant
0 Kudos

Hi Willem,

I've never heard of this "JSONscriptRequest class", but as far as I know, the REST SDK doesn't support JSONP callbacks or JSONP in general.

For cross domain request, you'll find CORS settings on your WebApplicationContainer Server settings page in the CMC, but I'm not sure how / if they work.

Hope that helps.

Jan

former_member197386
Active Contributor
0 Kudos

Hi,

Yes, you can modify CORS though CMC, it works just fine

Best regards,

Anthony

Former Member
0 Kudos

Well, weird then that they mention it in the sdk documentation, I also never heard of a JsonScriptRequest class before, but it sounded like jsonp.

With the big limitation that you can not put/post or delete with jsonp it wouldn't be a valid alternative anyway ...

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I was abble to do Cross Domain calls using the following header :

    setRequestHeader('X-PINGARUNER', 'pingpong');

Cheers,

Rogerio