Files
fn-serverless/vendor/github.com
Alexander Bransby-Sharples c5ec0cc41e Add CORS support to fn api (#455)
The Gin middleware is being used if one or more Origins are specified. Default setup for each Origin is as follows:

- GET,POST, PUT, HEAD methods allowed
- Credentials share disabled
- Preflight requests cached for 12 hours

Which are the defaults gin-contrib/cors comes with out of the box.

Gin-cors will return a 403 if it gets a request with an Origin header that isn't on its' list. If no Origin header is specified then it will just return the servers response.

Start fn with CORS enabled:

`API_CORS="http://localhost:4000, http://localhost:3000" make run`
2017-11-16 15:37:26 +00:00
..
2017-06-11 02:05:36 -07:00
2017-09-18 23:33:47 -07:00
2017-06-11 02:05:36 -07:00
2017-09-18 23:33:47 -07:00
2017-07-25 08:55:22 -07:00
2017-09-19 14:14:42 -07:00
2017-07-06 19:46:28 -07:00
2017-09-18 23:33:47 -07:00
2017-09-05 11:36:47 -07:00
2017-06-11 02:05:36 -07:00
2017-07-25 08:55:22 -07:00
2017-08-23 21:39:22 -07:00
2017-09-05 11:36:47 -07:00