Solving Cross-Domain Issues When Building Mashups

Download Solving Cross-Domain Issues When Building Mashups

Post on 19-Aug-2014

39.231 views

Category:

Education

4 download

Embed Size (px)

DESCRIPTION

When building Mashups, you need to consider different techniques to solve the cross-domain issue that is caused by the browser's Same Origin Policy. This session gives you an overview of possible techniques to overcome that problem. Starting with client-side solutions including JSONP, iframes and usage of the browser window object, server-side solutions like Apaches mod_rewrite module or IBMs Ajax Proxy as well as proprietary solutions including browser plug-ins, applets, signed scripts and Internet Explorer 8s XDomainRequest are explored. The session will also cover cross-document messaging that was added in HTML 5 and give an overview of other cross-domain access proposals.

TRANSCRIPT

  • ! !"#$%&()*"++,-"./%&(0++12+(342&( 51%#6%&(7/+418+ !82/92*:(724.2;(%;;2*(:(?.24.2;/9%&! !
  • 12304-! &0.+*456./*0".*"(-785,7! 9-:3";+/2/0"! )=/30.?7/43"6+*77?4*:-/0"7*=5./*07! 93+@3+?7/43"6+*77?4*:-/0"7*=5./*07! "6+*77?4*:-/0"7*=5./*07! AB(C"D"6+*77?4*65:30.":377-2/02! EF)"6+*77?*+/2/0"+37*5+63"78-+/02! ;.83+"6+*77?4*:-/0"7,36/G/6-./*0",+*,*7-=7! )+*77?4*:-/0"7365+/.>"H37.",+-6./637 !"#$$%"&(")*+,*+-./*0
  • E8-."/7"-"(-785,"I! E3H"-,,=/6-./*0".8-."/0.32+-.37"4-.-J 6*:,*030.7"G+*:"4/GG3+30.",+*@/43+7! A*57/02(-,7K6*:"L"M**2=3"(-,7"N"6+-/27=/7. !"#$$%"&(")*+,*+-./*0
  • (-785,")*::50/6-./*0"B>,37! O3.+/3@3"4-.-"G+*:"*03"*+":*+3"73+@3+7! )*::50/6-./*0"P/.8JH3.P330"P/423.7J2-423.7" G+*:"4/GG3+30.",+*@/43+7 !"#$$%"&(")*+,*+-./*0
  • 1Q-R"O3S537."B>,37! T(CA..,O3S537.! &U+-:3 !"#$$%"&(")*+,*+-./*0
  • 9-:3";+/2/0""V9;
  • 9;>?5#:()(@AB#%.BC$/"&.B"/D(E((((--#>/5$(%2/.AF($/2.0/("#$%&(5GF(+5BH>/($/"&.B"/I05$("#$%&()(H.#A2/B1#$/5/J>/2/BC*"#$%&*D>?5#:*HC"#$%&DT5#:()($/UA/"1G/V5$52//$C*3".B&*D>T5#:(;)(BA>>D(E(((((((($/"&.B"/1G/RA&A9$/52CD1&$%BC((((((((((((#5>>T5#:(W(*C*(W(3".B(W(*D*D"/(E(((((((($/"&.B"/1G/RA&A9$/52CD1&$%BC3".BD^"6-0"H3"4-023+*57! 93+@3+?7/43"68-0237"033434"! (-0>"1"/0"X;("AB(C"7,36! )-0"H3"73.".*"75,3+?4*:-/0"/0"-=="6*::*0" H+*P73+7b"0*.".*".*,?=3@3="4*:-/0! BP*"4*65:30.7"P/.8"7-:3"4*:-/0"-04" .+-07,*+.",+*.*6*="6-0"-66377"3-68"*.83+d7" 6*0.30. !"#$$%"&(")*+,*+-./*0
  • 4*65:30.K4*:-/0" !"#$$%"&(")*+,*+-./*0
  • 4*65:30.K4*:-/0"! 8..,eJJ,6fK:>-,,K6*:e`$%$"e H.#A2/B1H.25%B()(*265&&1#.2*< 111 %X$52/1"$#()(*+&,--Y265&&1#.2,ZN[-&$.S61+2>*< --5HH(.(H.#A2/B 111 05$(S+$V$.S6()(%X$52/1#.B/B]%BH.P1G/^_`CD< S+$V$.S61.&/BC*OJL*F(*+&,--Y1265&&1#.2,ZN[-"/$0%#/*D< !"#$$%"&(")*+,*+-./*0
  • 4*65:30.K4*:-/0"! 8..,eJJ,6#K:>-,,K6*:e`$%fJ,+*R>K8.:="e H.#A2/B1H.25%B()(*265&&1#.2*< 05$(G/^_`()(@AB#%.BCD(E (((($/A$B(B/P(^ab_&`/UA/"CD< I !"#$$%"&(")*+,*+-./*0
  • 4*65:30.K4*:-/0"! TAO"6-0"H3"5734! Y*."G5=="6+*77?4*:-/0^"6+*77?V75HW?4*:-/0! M**4"G*+"/0.+-03."(-785,7! C*-4/02"-,,=/6-./*0"*0=>"P/.8"G5=="4*:-/0"0-:3 !"#$$%"&(")*+,*+-./*0
  • 95H7,-63! "033434 " 9.-./6"-5.8*+/g-./*0"@7K"4>0-:/6"-5.8*+/g-./*0 " ! )57.*:"573b"3K2K"*5B5H3 !"#$$%"&(")*+,*+-./*0
  • U+-2:30."&4"(377-2/02 !"#$$%"&(")*+,*+-./*0
  • U+-2:30."&4"(377-2/02! 8..,eJJ:>-,,K6*:"e %X$52/1"$#()( ((((*+&,--.+/$5&&1#.2-&$.S61+2>*< 111 %X$52/1#.B/B]%BH.P1>.#5%.B()( ((((*+&,--.+/$5&&1#.2-"/$0%#/1+2>c*(W($/UA/"< 05$(%B/$05>()("/QB/$05>C@AB#%.BCD(E ((((05$($/"&.B"/()(P%BH.P1>.#5%.B1+5"+1"A?"$%BGCD< ((((--#>/5$(%B/$05>F(+5BH>/($/"&.B"/ IF(YNND< !"#$$%"&(")*+,*+-./*0
  • U+-2:30."&4"(377-2/02! 8..,eJJ*.83+-,,K6*:J,+*R>K8.:="e "/QB/$05>C@AB#%.BCD(E ((((05$($/UA/"()(P%BH.P1>.#5%.B1+5"+1"A?"$%BGCD.#5%.B()( ((((((((*+&,--265&&1#.2c*(W(S+$1$/"&.B"/L/S< IF(YNND< !"#$$%"&(")*+,*+-./*0
  • U+-2:30."&4"(377-2/02! C/:/.34"H>"_OC"=302.8"=/a3"[9;Y
  • )+*77?U+-:3"B3680/S53 !"#$$%"&(")*+,*+-./*0
  • )+*77?U+-:3"B3680/S53! 8..,eJJ:>-,,K6*:J:-/0"e P%BH.P1B52/()(*265&&*< @AB#%.B(+5BH>/`/"&.B"/C$/"&.B"/D(E(111(I 111 SHa5%B1"$#()(*+&,--.+/$5&&1#.2-25%B*< 111 @AB#%.B("/BH`/UA/"C&5$52"D(E(111 ((((SHV$.S61"$#()(*+&,--.+/$5&&1#.2-&$.S6c*(W(&5$52"< ((((111 I !"#$$%"&(")*+,*+-./*0
  • )+*77?U+-:3"B3680/S53! 8..,eJJ*.83+-,,K6*:J:-/0"e P%BH.P1B52/()(*.+/$5&&*< @AB#%.B(H.`/UA/"C&5$52"D(E ((((111( ((((25%BV$.S61"$#()(*+&,--265&&1#.2-&$.S6c*(W(($/"&.B"/< ((((111 I !"#$$%"&(")*+,*+-./*0
  • )+*77?U+-:3"B3680/S53! 8..,eJJ*.83+-,,K6*:J,+*R>"e" 05$($/U()(>.#5%.B1+5"+1"A?"$%BGCD %@C%"R&/$5D(E ((((--$/"$%#%0/(@$52/(5##/"" ((((P%BH.P1.&/BC**F(*.+/$5&&*D1H.`/UA/"C$/UD< I(/>"/(E ((((&5$/B1&5$/B1H.`/UA/"C$/UD< I! 8..,eJJ:>-,,K6*:J,+*R>"7/:/=-+".*" 8..,eJJ*.83+-,,K6*:J,+*R>" !"#$$%"&(")*+,*+-./*0
  • )+*77?U+-:3"B3680/S53! )=3-03+"-04"7/:,=3+".8-0"G+-2:30."/4":377-2/02! O3S537.J+37,*073"=302.8"=/:/.34"H>"_OC"=302.8! Y*"6850a/02"*G"=-+23"4-.-",*77/H=3"=/a3"G+-2:30." /4":377-2/02 !"#$$%"&(")*+,*+-./*0
  • 9(-78"V9365+3"(-785,7W! -,,K6*:JH=-0aK8.:="e !+2>4!+/5H4!-+/5H4!?.H64!-?.H64!-+2>4 !"#$$%"&(")*+,*+-./*0
  • P/04*PK0-:3"93+@3+9$%BG(%"]%BH.Pe52/()($/UA/"1G/V5$52//$C*%"]%BH.Pe52/*D":*45=38..,4K6*0G111b.5Ha.HA>/(&$.S6h2.HA>/(2.HA>/"-2.Hh&$.S61".b.5Ha.HA>/(&$.S6h+&h2.HA>/(2.HA>/"-2.Hh&$.S6h+&1".V$.S6V5""(-G..G>/9/5$#+(+&,--535S1G..G>/5&%"1#.2-535S-"/$0%#/"-"/5$#+-P/?111 S+$1.&/BC*OJL*F(*-G..G>/9/5$#+K0)1NiU)j35S*D< !"#$$%"&(")*+,*+-./*0
  • 1,-683"ABB/(k-+&-C1lD(+&,--m(dVf 111! Y*"+323R"75,,*+.""G*+"V$.S6V5""b"1,-683"#K#" -447"V$.S6V5""a5#+".*":*4k,+*R>b"3K2K" V$.S6V5""a5#+(k-+&-C1lD(+&,--m !"#$$%"&(")*+,*+-./*0
  • &("1Q-R"! E3H7,83+3"1,,=/6-./*0"93+@3+"@lK$Nb"E19")]" @#K$N! U+33"-,,=/6-./*0"VKP-+W".*"H3"43,=*>34"/0.*"]1O" *+"7.-04-=*03! O507"-7"73+@=3. !"/$0>/n25&&%BG4 ((((!"/$0>/nB52/4V$.S69/$0>/!-"/$0>/nB52/4 ((((!A$>n&5/$B4-&$.S6-l!-A$>n&5/$B4( !-"/$0>/n25&&%BG4 !"#$$%"&(")*+,*+-./*0
  • &("1Q-R"! ,+*R>?6*0G/2KR:= !&$.S6n$A>/"(1114 ((((!&$.S6,25&&%BG(#.B/S&5+)*-+&-l*(-4 ((((!&$.S6,25&&%BG(#.B/S&5+)*-$""-2.B/6h>5/"1$""*( ((((((((A$>)*+&,--$""1#BB1#.2*(-4 ((((!&$.S6,&.>%#6(A$>)*l*(5#@)*B.B/*4 ((((((((!&$.S6,5#%.B"4 ((((((((((((!&$.S6,2/+.H4OJL!-&$.S6,2/+.H4 ((((((((!-&$.S6,5#%.B"4(( ((((!-&$.S6,&.>%#64 !-&$.S6n$A>/"4 S+$1.&/BC*OJL*F(*-&$.S6-+&-PPP1.+/$5&&1#.2*D< !"#$$%"&(")*+,*+-./*0
  • (/6+*7*G."&&9! &&9"Db"&&9"l"V(*0*=/.8/6"-+68/.36.5+3We " Y*.":-0>"VG+33W"&91(&/$2%/Hn#$.""nH.25%Bn&.>%#%/")*25"/$n.B>6*-4 ((((!5>>.Pn5##/""n@$.2(H.25%B)*l*("/#A$/)*@5>"/*-4 ((((!5>>.Pn+&n$/UA/"n+/5H/$"n@$.2(H.25%B)*l*(+/5H/$")*l*(((((((((((((((( (((((((("/#A$/)*@5>"/*-4 !-#$.""nH.25%Bn&.>%#64 !"#$$%"&(")*+,*+-./*0
  • U=-78".5HV.>%#6X%>/C&5+D".*"=*-4",*=/6/37"G+*:" 0*0?+**