Skip to content

A small description of the CORS issue, with simple solution written in PHP.

Notifications You must be signed in to change notification settings

h-fares/cors-proxy-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

cors-proxy-php

A small description of the CORS issue, with simple solution written in PHP.

CROS policy "is a mechanism that uses additional HTTP header to inform a browser to allow a web application running at one origin (domain) have permission to access selected resources from a server at a different origin" Cross-Origin Resource Sharing (CORS) Policies by IBM

Thazt means when client trys to get content of another website (another URL) the Browser blocks this request if the reqest / response does not have special header:

Access-Control-Allow-Origin

With this header we can define all origin that can be allowed from the Browser. To allow all origin => Access-Control-Allow-Method: *

BASED ON: simple cors

About

A small description of the CORS issue, with simple solution written in PHP.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages