StudentShare
Contact Us
Sign In / Sign Up for FREE
Search
Go to advanced search...
Free

JavaScript-Same Origin Policy - Essay Example

Cite this document
Summary
This essay talks about a security concept, the same origin policy, a concept used when there is a need to isolate documents retrieved from distinct origins. Where origins imply the host name e.g. documents located on https://march.com/January.html since they are from dissimilar protocols…
Download full paper File format: .doc, available for editing
GRAB THE BEST PAPER96% of users find it useful
JavaScript-Same Origin Policy
Read Text Preview

Extract of sample "JavaScript-Same Origin Policy"

JavaScript-Same Origin Policy Introduction As a security concept, the same origin policy is a concept used when there is a need to isolate documents retrieved from distinct origins. Where origins implies the host name e.g. documents located on https://march.com/January.html since they are from dissimilar protocols. The same origin ideas thus help in avoiding the hackers from injecting evil sites into someone’s or other sites that are wanted private. This origin policy always starts with trust; a web page owns its data and is free to submit that data to the original web site.

Thus, the already running JavaScript will be given an assurance of not being evil. The JavaScript will load more content e.g. building a simple image gallery use that is through writing JavaScript encryptions that inserts and erases into the existing page. The browser, therefore, will instantly load the image, in a way, showing that it had been present in the existing page, and removes it from the display if the image is deleted. Thus, the same origin policy code prevents the JavaScript from directing data to a dissimilar server or from writing a data belonging to a different server (Powers, 2008).

Enabling communications with another domain will depend on the use of JSONP, which grounds on a - tag. The sent information to another domain is encrypted in the URL as limits. The resumed JavaScript comprises of a purpose call with the invited info as parameters. Though if some evil encryptions of JavaScript gets submitted into a clean web page, it may results into an tag and includes them in that page (Powers, 2008). Thus, it will be safe to develop a URL to any intimidating domain sticking it in the image tag and submits a request.

References POWERS, S. (2008). Learning JavaScript Add Sparkle and Life to Your Web Pages. Sebastopol, OReilly Media, Inc. http://public.eblib.com/EBLPublic/PublicView.do?ptiID=443443. HOFFMAN, B., & SULLIVAN, B. (2008). Ajax security. Upper Saddle River, N.J., Addison-Wesley. http://proquest.safaribooksonline.com/9780321491930. GOSSELIN, D. (2011). Principles of HTML, XHTML, and DHTML. Boston, MA, Course Technology/Cengage Learning. GOSSELIN, D. (2011). Javascript. Boston, Mass, Course Technology.

Read More
Cite this document
  • APA
  • MLA
  • CHICAGO
(“JavaScript-Same Origin Policy Essay Example | Topics and Well Written Essays - 250 words”, n.d.)
JavaScript-Same Origin Policy Essay Example | Topics and Well Written Essays - 250 words. Retrieved from https://studentshare.org/information-technology/1649413-javascript-same-origin-policy
(JavaScript-Same Origin Policy Essay Example | Topics and Well Written Essays - 250 Words)
JavaScript-Same Origin Policy Essay Example | Topics and Well Written Essays - 250 Words. https://studentshare.org/information-technology/1649413-javascript-same-origin-policy.
“JavaScript-Same Origin Policy Essay Example | Topics and Well Written Essays - 250 Words”, n.d. https://studentshare.org/information-technology/1649413-javascript-same-origin-policy.
  • Cited: 0 times

CHECK THESE SAMPLES OF JavaScript-Same Origin Policy

Agricultural policy /point of view on food labeling country of origin

Hence the food policy must ensure that the national and international food certification and labeling agencies must be well informed about the product specifications like origin and date of packing etc.... Hence any agricultural policy must incorporate suitable strategies for making food labeling a mandatory practice.... In addition to the quality parameters, the customers must be informed about the origin of the agricultural product.... The identification of origin of the product helps the people to judge the quality of the product and to decide whether it is safe to procure the product....
5 Pages (1250 words) Essay

JavaScript: Compatibility, Strengths, and Weaknesses

First is JavaScript compatibility in browsers, operating systems and platforms, including mobile platforms, which have found increasing popularity in recent years.... Second subtopic is the features that make JavaScript popular among web… Third is the downside of JavaScript, which may lead web developers to seek help from other scripting or programming languages. We have seen JavaScript evolve in its more than a decade of existence in the service of enhancing our web pages, totaling a number of ten In the course of its development however, it has gone beyond the realm of simple interactive web features to become a “respected programming language used by corporations and developers across the globe to make incredible applications” (Resig, 2006, p....
4 Pages (1000 words) Essay

Javascript Sanboxing

It consists of the areas and the set code of regulation that are necessary when it comes to creation of applets.... An applet is sent automatically after its formation; hence, it poses a… A sandbox chips in and puts restrictions on what the applet should access.... Therefore, the applet is not in a position to make major changes to the computer (Finifteret al....
1 Pages (250 words) Essay

Name on or more interactive features that JavaScript can provide and HTML 5 cannot

Custom event, which is an action, is an event that occurs and one feels its expedient define an action that will be elicited when such an action occurs.... Custom… Custom event, therefore, becomes the manifestation seen by the observer pattern that is useful in loose coupling.... Loose coupling is unparalleled when creating Interactive features JavaScript offers absent in HTML5 affiliation JavaScript features Custom events Even with the coming of HTML5, creating a custom event still requires the use of JavaScript (Severance 2012, p....
1 Pages (250 words) Essay

Can JavaScript be used in server-side validation

It can be used for client-side validation to primarily reduce the network traffic.... However, today, the extension of JavaScript to the server side can be made possible through embedded JavaScript engines (Hanselman and Rader,… SpiderMonkey and Rhino, both maintained by Mozilla Foundation are known established engines....
1 Pages (250 words) Essay

The Origin of the Internet

The paper 'The origin of the Internet' presents the Internet which started as a US defense initiative has developed into the main communications mechanism for the academic and research community and most recently has expanded into a major business tool for the commercial sector.... The origin of the internet is rooted in the circumstances of the Cold War, a period during which nuclear conflict featured as potentially the most immediate and catastrophic of all global dangers....
9 Pages (2250 words) Article

JavaScript Wrapper

This report "JavaScript Wrapper" discusses an open scripting language.... It is not intended to replace proper security measures, and it is not favorable where proper encryption is required.... JavaScript has its own security model, which is not designed to protect the website owner.... hellip; These are errors that occur (as the name suggests) while the script is running....
6 Pages (1500 words) Report
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Contact Us