开发者

Local js function to other site that will write a cookie

开发者 https://www.devze.com 2023-03-22 12:14 出处:网络
im the owner of domain A.com and B.com in B.com i have handler (ashx) which writes a cookie. now , im on A.com.

im the owner of domain A.com and B.com

in B.com i have handler (ashx) which writes a cookie.

now , im on A.com.

i want to call this handler from site A.com via Js(/jquery) that will activate the B.com's handler - and will write the cooki开发者_StackOverflow社区e of B.com in My browser.

does jsonP will help me here ?


i think you are looking for something like this


You already answered your own question, you can use jsonp for this. Some more info : http://api.jquery.com/jQuery.getJSON/

0

精彩评论

暂无评论...
验证码 换一张
取 消