For studying CORS
MEMO: This repository is just for studying, please DO NOT copy these codes for production code.
- Same Origin Policy
- Simple cross origin
- Cross origin with credentials
- Cross origin with preflight
- Optimizing preflight request
Browser protects server response from JavaScript access because of Same Origin Policy.