הרשם שאלות ותשובות רשימת חברים לוח שנה הודעות מהיום

חזור   הוסטס - פורום אחסון האתרים הגדול בישראל > עיצוב גראפי, תכנות על כל שפותיו וקידום ושיווק אתרים > פורום תיכנות

   
|!|

השב
 
כלים לאשכול תצורת הצגה
ישן 12-07-12, 22:21   # 1
Tomer
Whatever
 
Tomer's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
הודעות: 7,039
שלח הודעה באמצעות MSN אל Tomer Send a message via Skype™ to Tomer

Tomer לא מחובר  

קראת את ההסבר בויקיפדיה שיגאל קישר אליו ?

In computing, the same origin policy is an important security concept for a number of browser-side programming languages, such as JavaScript. The policy permits scripts running on pages originating from the same site to access each other's methods and properties with no specific restrictions, but prevents access to most methods and properties across pages on different sites.

הרעיון הוא שקוד JavaScript באתר אחד (דומיין אחד) לא יוכל לעולם להשפיע על דומיין אחר.

מה שכן, מצאתי תגובה ב- Stack Overflow שמדברת על האפשרות לעקוף את העניין בצורה קצת מכוערת:

http://stackoverflow.com/questions/1...ith-javascript

you can circumvent the same origin policy by having doubling up on iframes. Your main page embeds an iframe to a shim page on your own server. The shim page in turn just embeds an iframe of the foreign page. The master page can scroll the shim page since they're in the same origin
__________________
תומר
  Reply With Quote
ישן 12-07-12, 23:06   # 2
Bittan
חבר מתקדם
 
Bittan's Avatar
 
מיני פרופיל
תאריך הצטרפות: Jul 2011
הודעות: 458

Bittan לא מחובר  

ציטוט:
נכתב במקור על ידי Tomer צפה בהודעה
קראת את ההסבר בויקיפדיה שיגאל קישר אליו ?

In computing, the same origin policy is an important security concept for a number of browser-side programming languages, such as JavaScript. The policy permits scripts running on pages originating from the same site to access each other's methods and properties with no specific restrictions, but prevents access to most methods and properties across pages on different sites.

הרעיון הוא שקוד JavaScript באתר אחד (דומיין אחד) לא יוכל לעולם להשפיע על דומיין אחר.

מה שכן, מצאתי תגובה ב- Stack Overflow שמדברת על האפשרות לעקוף את העניין בצורה קצת מכוערת:

http://stackoverflow.com/questions/1...ith-javascript

you can circumvent the same origin policy by having doubling up on iframes. Your main page embeds an iframe to a shim page on your own server. The shim page in turn just embeds an iframe of the foreign page. The master page can scroll the shim page since they're in the same origin
אני לא בקי באנגלית, אפשר בבקשה את הקוד או את ההסבר בעברית בבקשה ?
__________________
כותב מאמרים מקצועי - 4 שנים
  Reply With Quote
ישן 13-07-12, 12:09   # 3
IgalSt
מנהל פורום, עסק רשום
 
IgalSt's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: המרכז
גיל: 38
הודעות: 1,432
Send a message via Skype™ to IgalSt

IgalSt לא מחובר  

ציטוט:
נכתב במקור על ידי Tomer צפה בהודעה
מה שכן, מצאתי תגובה ב- Stack Overflow שמדברת על האפשרות לעקוף את העניין בצורה קצת מכוערת:

http://stackoverflow.com/questions/1...ith-javascript

you can circumvent the same origin policy by having doubling up on iframes. Your main page embeds an iframe to a shim page on your own server. The shim page in turn just embeds an iframe of the foreign page. The master page can scroll the shim page since they're in the same origin
וואלה, פתרון יפה שלא הכרתי. אבל כשחושבים על זה - הוא כ"כ פשוט

תודה!
  Reply With Quote
השב

חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים)
 


חוקי פירסום
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is מופעל
סמיילים הם מופעל
[IMG] קוד מופעל
קוד HTML מכובה

קפיצה לפורום


כל הזמנים הם GMT +2. הזמן כעת הוא 06:22.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ