Origin
A web origin is the security identity defined by a resource's scheme, host, and port.
Vanilla Web
A web security identity defined by a scheme, host, and port that determines the boundary for same-origin access.
- How it is used
- Determines the browser security boundary for resource access and whether a request is cross-origin.
- How deep it goes
- Defines origin through URL components and works through two decomposed URLs, then explains browser isolation and server-controlled cross-origin access.
- Examples
- Uses HTTPS and localhost URLs with implicit and explicit ports, plus a security comparison table.
- What you can do after
- Apply it by identifying a URL’s origin and deciding when cross-origin API access requires server-configured CORS.
ASP.NET Core in Action, 3e
A web origin is the combination of a resource's scheme, domain, and port that determines its security boundary for browser access.
- How it is used
- Explains when browser JavaScript may access resources and when an API must explicitly allow cross-origin requests.
- How deep it goes
- Defines scheme, domain, and port with URL comparisons, then connects the boundary to CORS without detailing request headers.
- Examples
- Uses same-path and cross-origin URLs plus a shopping site calling a product API.
- What you can do after
- Evaluate whether two URLs are same-origin and recognize when CORS configuration is required.
Spring Security in Action, Second Edition
An origin is the scheme, host, and port tuple that identifies the security context of a web resource.
- How it is used
- Governs whether browsers accept responses to requests made between different web origins.
- How deep it goes
- Explains origin-based browser enforcement and simple versus preflighted requests, but does not detail origin parsing internals.
- Examples
- Uses localhost versus 127.0.0.1, XMLHttpRequest, Access-Control-Allow-Origin, and a Spring controller endpoint.
- What you can do after
- Evaluate why a browser blocks a response and identify which origin a CORS policy must permit.
Read how Spring Security in Action, Second Edition explains origin →
Grokking Web Application Security
A web origin is the combination of a resource's protocol, domain, and port that determines its browser security boundary.
- How it is used
- Defines the browser boundary for window interaction, JavaScript reads, and WebStorage access.
- How deep it goes
- Defines protocol-domain-port matching and applies it to windows, requests, CORS headers, and storage isolation.
- Examples
- Compares example URLs and uses Fetch, XMLHttpRequest, CORS headers, and a localStorage shopping cart.
- What you can do after
- Operate/configure cross-origin data access by recognizing origin mismatches and limiting CORS permissions to trusted origins.
Read how Grokking Web Application Security explains origin →
Also covered in
What to know first
- HTTPSHTTPS is HTTP carried over TLS to provide encrypted communication and authentication between network endpoints.
- JavaScriptJavaScript is a high-level, dynamically typed programming language standardized as ECMAScript and used for web and general-purpose programming.
- JSONJSON is a language-independent text-based data-interchange format that represents structured values using objects, arrays, strings, numbers, booleans, and null.
Related concepts
- same-origin policyconfigured by · The same-origin policy is a browser security mechanism that restricts how scripts and documents interact with resources from origins that differ in scheme, host, or port.
- domainhas part · A domain is an area of subject matter, activity, or problem context whose concepts, rules, and requirements a software system models or addresses.
- web storage apiconfigures · The Web Storage API is a browser API for storing string key-value data on the client side in origin-associated storage areas such as localStorage and sessionStorage.
- local storageconfigured by · Local storage is a browser-provided, origin-scoped key-value storage mechanism for string data that persists across sessions.
- cross-origin requestcontrasts with · A cross-origin request is a network request from a webpage or script to a resource whose origin differs from the requester’s origin.
Questions about origin
What is origin?
A web origin is the security identity defined by a resource's scheme, host, and port.
Which Manning books explain origin?
Vanilla Web, ASP.NET Core in Action, 3e, Spring Security in Action, Second Edition and Grokking Web Application Security.
What should I know before learning origin?
Manning books that teach origin usually introduce HTTPS, JavaScript and JSON first.
What is the difference between origin and cross-origin request?
A web origin is the security identity defined by a resource's scheme, host, and port. A cross-origin request is a network request from a webpage or script to a resource whose origin differs from the requester’s origin.
What are the parts of origin?
Origin includes domain.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.



