I would like to make a bookmarklet that users can add to click on while browsing websites. Clicking the bookmarklet grabs some page content and sends it to myserverapi.com
myserverapi.com then sends a reply back to the bookmarklet, which then displays the results to the user (without taking them away from the page they clicked the bookmarklet in). The user confirms something, and then data is once more sent back to myserverapi.com
Is this possible?
I am aware of JSONP but to my knowledge it only works for retrieving data: I was wondering if information can be somehow encoded and sent to the server in a back-and-forth manner.
Thanks!
ah, in this usage case CORS works because I have control of the server. I can't think of a scenario in which back and forth is required to send data to a possibly "un-willing" server anyway, only the other way around.