menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Productivity News

>

TryHackMe:...
source image

Dev

4w

read

187

img
dot

Image Credit: Dev

TryHackMe: CORS & SOP

  • Same-Origin Policy (SOP) guides how web browsers interact between web pages.
  • Cross-Origin Resource Sharing (CORS) allows servers to specify how resources can be requested from different origins.
  • CORS exceptions permit web pages to request resources from other domains under controlled conditions.
  • Server processes requests and includes CORS headers in responses for browser interpretation.
  • HTTP headers like Access-Control-Allow-Origin, Access-Control-Allow-Methods, and others play roles in CORS.
  • CORS distinguishes between simple requests and preflight requests based on HTTP methods and headers.
  • Process of a CORS request involves validation of Origin header against allowed origins.
  • Access-Control-Allow-Origin header indicates the permitted origin for a request.
  • CORS configurations include single origin, multiple origins, wildcard origin, and configurations with credentials.
  • Common CORS misconfigurations include null origin misconfigurations, bad regex in origin checking, and trusting arbitrary supplied origin.

Read Full Article

like

11 Likes

For uninterrupted reading, download the app