Skip to content

Commit

Permalink
Link to SO about testing CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
cyu committed Dec 19, 2020
1 parent 47af8a8 commit d83baa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ A Resource path can be specified as exact string match (`/path/to/file.txt`) or

When specifying an origin, make sure that it does not have a trailing slash.

### Testing Postman and/or CURL
### Testing Postman and/or cURL

* Make sure you're passing in an `Origin:` header. That header is required to trigger a CORS response.
* Make sure you're passing in an `Origin:` header. That header is required to trigger a CORS response. Here's [a good SO post](https://stackoverflow.com/questions/12173990/how-can-you-debug-a-cors-request-with-curl) about using cURL for testing CORS.
* Make sure your origin does not have a trailing slash.

### Positioning in the Middleware Stack
Expand Down

0 comments on commit d83baa7

Please sign in to comment.