Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmhrisk/d7a15a5989f764daa6641c8d33a9669b to your computer and use it in GitHub Desktop.
Save rmhrisk/d7a15a5989f764daa6641c8d33a9669b to your computer and use it in GitHub Desktop.
Web Crypto and Web Application Security Basics

If you are going to be using Web Crypto in your application you better also get the basics of Web Security in your application taken care of. This is a list of resources that are useful when looking at the security of a web application.

TLS

Transport Layer Security (TLS) and its predecessor, Secure Sockets Layer (SSL), both frequently referred to as "SSL", are cryptographic protocols that provide communications security over a computer network.

Resources

Content Security Policy

Content Security Policy (CSP) is a computer security standard introduced to prevent cross-site scripting (XSS), clickjacking and other code injection attacks resulting from execution of malicious content in the trusted web page context.

Resources

HTTP Strict Transport Security

HTTP Strict Transport Security (HSTS) is a web security policy mechanism which is necessary to protect secure HTTPS websites against downgrade attacks, and which greatly simplifies protection against cookie hijacking.

Resources

Subresource Integrity

Subresource Integrity (SRI) is a computer security standard introduced to enable user agents to verify that a fetched resource has been delivered without unexpected manipulation.

Resources

X-Frame-Options

To improve the protection of web applications against clickjacking, this document describes the X-Frame-Options HTTP header field, which declares a policy, communicated from the server to the client browser, regarding whether the browser may display the transmitted content in frames that are part of other web pages.

Resources

Same Origin Policy

In computing, the same-origin policy is an important concept in the web application security model. Under the policy, a web browser permits scripts contained in a first web page to access data in a second web page, but only if both web pages have the same origin.

Resources

Cross-origin resource sharing (CORS)

Cross-origin resource sharing (CORS) is a mechanism that allows restricted resources (e.g. fonts) on a web page to be requested from another domain outside the domain from which the resource originated. A web page may freely embed images, stylesheets, scripts, iframes, videos.

Resources

Window.postMessage()

The window.postMessage method safely enables cross-origin communication.

Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment