#

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
https://static.github-zh.com/github_avatars/fruitcake?size=40

Adds CORS (Cross-Origin Resource Sharing) headers support in your Laravel application

PHP 6.26 k
3 年前
https://static.github-zh.com/github_avatars/everywall?size=40

Selfhosted alternative to 12ft.io. and 1ft.io bypass paywalls with a proxy ladder and remove CORS headers from any URL

Go 5.96 k
1 年前
https://static.github-zh.com/github_avatars/adamchainz?size=40

Django app for handling the server headers required for Cross-Origin Resource Sharing (CORS)

Python 5.55 k
13 天前
https://static.github-zh.com/github_avatars/jpillora?size=40
JavaScript 3.15 k
1 个月前
https://static.github-zh.com/github_avatars/JoyChou93?size=40

Java web common vulnerabilities and security code which is base on springboot and spring security

Java 2.6 k
1 年前
https://static.github-zh.com/github_avatars/nelmio?size=40

Adds CORS (Cross-Origin Resource Sharing) headers support in your Symfony application

PHP 1.92 k
1 年前
https://static.github-zh.com/github_avatars/s0md3v?size=40
Python 1.47 k
3 年前
roottusk/vapi
https://static.github-zh.com/github_avatars/roottusk?size=40
HTML 1.3 k
9 个月前
https://static.github-zh.com/github_avatars/francescomalatesta?size=40
PHP 1.18 k
6 年前
https://static.github-zh.com/github_avatars/chenjj?size=40
Python 1.13 k
4 年前
https://static.github-zh.com/github_avatars/xianhc?size=40
C# 1.08 k
5 个月前
https://static.github-zh.com/github_avatars/javieraviles?size=40

REST API boilerplate using NodeJS and KOA2, typescript. Logging and JWT as middlewares. TypeORM with class-validator, SQL CRUD. Docker included. Swagger docs, actions CI and valuable README

TypeScript 1.01 k
2 年前
https://static.github-zh.com/github_avatars/corydolphin?size=40

Cross Origin Resource Sharing ( CORS ) support for Flask

Python 933
4 个月前
https://static.github-zh.com/github_avatars/Baroshem?size=40

🛡 Automatically configure your app to follow OWASP security patterns and principles by using HTTP Headers and Middleware

TypeScript 928
2 个月前
https://static.github-zh.com/github_avatars/gnuns?size=40
JavaScript 919
3 年前
https://static.github-zh.com/github_avatars/OP-Engineering?size=40

⛓ Extract web links information: title, description, images, videos, etc. [via OpenGraph], runs on mobiles and node.

TypeScript 836
5 个月前
loading...

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

发布于 May 2006

Website
fetch.spec.whatwg.org
Wikipedia
维基百科

相关主题

Ajax