mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
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`
23 lines
359 B
YAML
23 lines
359 B
YAML
language: go
|
|
sudo: false
|
|
|
|
go:
|
|
- 1.6.x
|
|
- 1.7.x
|
|
- 1.8.x
|
|
- tip
|
|
|
|
script:
|
|
- go test -v -covermode=atomic -coverprofile=coverage.out
|
|
|
|
after_success:
|
|
- bash <(curl -s https://codecov.io/bash)
|
|
|
|
notifications:
|
|
webhooks:
|
|
urls:
|
|
- https://webhooks.gitter.im/e/acc2c57482e94b44f557
|
|
on_success: change
|
|
on_failure: always
|
|
on_start: false
|