gwt - How to formulate a JSONP request -


I am in the process of learning about GWT, I am currently experiencing problems in making an RPC call on a specific server using JSONP.

.

The server wants to communicate with the Jason-RPC service for which {'content-type': 'application / JS'} , and for example: { "Params": ["hollosver"], "method": "server.greeting", "id": 10} .

I wonder if it is possible to request JSONP on this server, because I think that JSONP is the only only solution, similar to Origin Policy restrictions of GWT. Edit : As mentioned, I think I have to be on JSON because the server does not provide JSONP service suggesting that the solution of SOP is correct It has also been suggested.

I wonder if it is possible to request a JSONP on this server

If the server does not support it, then no. To support JSONP server response is required: ": 10})

Where some callback is the name of a function that can be specified by the client If you do not have control over the server and do not support JSONP then you have to write a server-side script on your domain which will act as a bridge. Then you will send an AJAX request to this script which is distributed on the remote domain Do Gay.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -