Settings
The settings section contains global configuration for your APICHAP instance.
Field | Description |
---|---|
debug | If debug mode is set to true, you are able to use a SWAGGER page to test your REST endpoints directly. For default the debug mode is false. |
licence | Licence Key |
cors | Specify cors setting for your instance. |
Cors
Simply specify your Allow-Origin-Header to configure cors for your apichap instance.
settings:
debug: true
licence: testlicence
cors:
allowOrigin: "http://localhost:4200"
allowMethods: "GET,POST"
allowHeaders: "X-Auth-Custom-Header"
allowCredentials: true
It is not recommended to use wildcard as a setting, but if you do think about using apostrophes "". ( is a special sign in yaml syntax.)