Repository navigation

#

Cross-origin resource sharing (CORS)

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

发布于 May 2006

fetch.spec.whatwg.org
维基百科

相关主题

Ajax

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

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

PHP
6272
2 年前

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

Python
5464
8 天前

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

Go
4754
7 个月前
JavaScript
3126
3 年前

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

Java
2498
5 个月前
JavaScript
2458
2 年前

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

PHP
1907
10 个月前
Python
1408
3 年前
roottusk/vapi

vAPI is Vulnerable Adversely Programmed Interface which is Self-Hostable API that mimics OWASP API Top 10 scenarios through Exercises.

HTML
1228
3 个月前

A Laravel 5.8 API Boilerplate to create a ready-to-use REST API in seconds.

PHP
1176
6 年前

🎯 Fast CORS misconfiguration vulnerabilities scanner

Python
1078
3 年前

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
1010
1 年前

.Net 8 、SqlSugar ORM、Vue 2.X、RBAC、前后端分离的开箱则用的企业级中后台权限管理系统

C#
1004
3 天前

Cross Origin Resource Sharing ( CORS ) support for Flask

Python
912
2 个月前

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

TypeScript
886
1 个月前
JavaScript
832
2 年前

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

TypeScript
797
2 个月前