https://github.com/pranosa/go_cors_test
CORS Testing Utility - Test for SIMPLE Cors and Preflight Request CORS, Test Support for Methods and Headers Against Origin
https://github.com/pranosa/go_cors_test
cors cors-request
Last synced: about 1 month ago
JSON representation
CORS Testing Utility - Test for SIMPLE Cors and Preflight Request CORS, Test Support for Methods and Headers Against Origin
- Host: GitHub
- URL: https://github.com/pranosa/go_cors_test
- Owner: PranoSA
- Created: 2023-12-28T17:17:21.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-28T18:23:24.000Z (over 2 years ago)
- Last Synced: 2025-01-14T02:09:27.151Z (over 1 year ago)
- Topics: cors, cors-request
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CORS Tester
Tests Whether or Not a Request Will Generate a Preflight Request or is Subject To Simple CORS
If a Simple CORS is requested, will test if the request qualified for Simple CORS, Then Tests Whether Simple CORS works
If Simple CORS is not requested, Will Test if Requests passes preflight requests
Based on Requested Methods, Headers, and Whether Credentials are Used (Cookie, Authorization header)
Remember that the CORS Response is configured per Originating Domain and Per Method, *BUT* , The server or functionality or method
to handle CORS requests for each endpoint on a server may differ, so remember to specify the PATH in the destination path.
## Command Line Options
### Must :
Specify Origin with (--origin )
Specify Dest with (--dest) [ex: "GET", "GET,POST", "GET,POST,DELETE"]
Specify Methods with (--methods)
## Optional:
Specify Simple CORS (--simple)
Specify Headers (--headers)
Specify Credentials (--credentials)