What is Mean by Cross-Origins and Same-Origins? | HTTP Interview Question

, ,

Two URLs have the same origin if they have identical schemes, hosts, and ports. (RFC 6454)
These two URLs have the same origin:
  • http://example.com/foo.html
  • http://example.com/bar.html
These URLs have different origins than the previous two:
  • http://example.net - Different domain
  • http://example.com:9000/foo.html - Different port
  • https://example.com/foo.html - Different scheme
  • http://www.example.com/foo.html - Different subdomain
Internet Explorer does not consider the port when comparing origins.

What are the Main Features of ASP.NET MVC 4 used by ASP.NET Web API? | ASP.NET Web API Interview Question

  • Routing changes: ASP.NET Web API uses same convention for config mapping that ASP.NET MVC provides.
  • Model Binding & Validation: ASP.NET Web API uses same model binding functionality, but HTTP specific context related operations only.
  • Filters: The ASP.NET Web API uses most of built-in filters from MVC.
  • Unit Testing: Now Unit testing based on MVC, strongly unit testable.