Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 20 hours ago
JSON representation

CORS Testing Utility - Test for SIMPLE Cors and Preflight Request CORS, Test Support for Methods and Headers Against Origin

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)