Skip to content
#

Cross-origin resource sharing (CORS)

Cross-origin resource sharing (CORS) is a mechanism that allows restricted resources on a web page to be accessed from another domain outside the domain from which the first resource was served. CORS also relies on a mechanism by which browsers make a "preflight" request to the server hosting the cross-origin resource, in order to check that the server will permit the actual request. In that preflight, the browser sends headers that indicate the HTTP method and headers that will be used in the actual request. For security reasons, browsers restrict cross-origin HTTP requests initiated from scripts. For example, fetch() and XMLHttpRequest follow the same-origin policy. This means that a web application using those APIs can only request resources from the same origin the application was loaded from unless the response from other origins includes the right CORS headers.

Resource types

  • Invocations of fetch() or XMLHttpRequest
  • Web Fonts (for cross-domain font usage in @font-face within CSS), so that servers can deploy TrueType fonts that can only be loaded cross-origin and used by websites that are permitted to do so
  • WebGL textures
  • Images/video frames drawn to a canvas using drawImage()
  • CSS shapes from images
  • scripts
  • iframes

Here are 3,075 public repositories matching this topic...

Project demonstrates an AI-powered content summarization and analysis tool that allows users to upload text content, receive a summarized version with key insights, and display these insights clearly. Optionally, the project can be extended to include data visualizations and user authentication.

  • Updated Jul 19, 2024
  • JavaScript

ShoppersKart is a robust e-commerce platform built with the MERN stack and Next.js. It features OTP-based authentication, password reset, product search, and user reviews. Users can add products to their cart or wishlist, ensuring a seamless shopping experience.

  • Updated Jul 19, 2024
  • JavaScript

It is a comprehensive web application designed to streamline healthcare management between doctors and patients. Built using React for the frontend and Node.js with PostgreSQL (NeonDB) for the backend, the system facilitates secure doctor registration, patient signup, login functionalities, and robust management of PDF documents.

  • Updated Jul 18, 2024
  • JavaScript

Welcome to Raha Wallet server a Mobile Finance Service (MFS)! This is the server-side application for the Raha Wallet, a robust transaction management system. The server handles user authentication, transaction processing, and provides endpoints for managing user data and transaction requests. It is built with Node.js and Express and uses MongoDB

  • Updated Jul 18, 2024
  • JavaScript

Welcome to the Salesway Dashboard, a comprehensive tool designed for visualizing and managing sales data effectively. This dashboard offers a seamless user experience with various features to enhance data visualization and analysis, while ensuring secure access and robust error handling.

  • Updated Jul 18, 2024
  • JavaScript

Website Backend API using Node.js and Express Welcome to the Website Backend API repository! This project serves as the backbone for a dynamic website, providing essential functionalities such as user authentication, data management, and API endpoints. Built with Node.js and Express, this backend solution leverages a stack of powerful libraries

  • Updated Jul 16, 2024
  • JavaScript

Created by WHATWG, Matt Oshry, Brad Porter, Michael Bodell, Tellme Networks

Released May 2006

Followers
12 followers
Website
fetch.spec.whatwg.org/#http-cors-protocol
Wikipedia
Wikipedia

Related Topics

ajax content-security-policy jsonp xhr