WEB SECURTY

CSRF

Cross-Site Request Forgery (CSRF) is an attack that forces authenticated users to submit a request to a Web application against which they are currently authenticated. CSRF attacks exploit the trust a Web application has in an authenticated user.

Web browser store information in cookies and it contains sessionId and other details. And if someone sends a URL of the website and we click on it then it can place request to the server with our authenticated session. 

CORS (Cross Origin Resource Sharing)

Cross-Origin Resource Sharing (CORS) is an HTTP-header based mechanism that allows a server to indicate any origins (domain, scheme, or port) other than its own from which a browser should permit loading resources.



If origin A wants to talk to origin B then Origin A Should have Access-Control-Allow-Origin:www.abc.om in header. 





Comments

Popular posts from this blog

Java 8 : Find the number starts with 1 from a list of integers

Find Loop in a Linked List

Customized Immutable Class