Skip to content

Commit

Permalink
Cors config added to AxonCore
Browse files Browse the repository at this point in the history
  • Loading branch information
MR-MKZ authored Nov 17, 2024
2 parents dcff1c2 + 81e095f commit d9bbb80
Show file tree
Hide file tree
Showing 26 changed files with 607 additions and 34 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ You can checkout Axon benchmarks document and results from below link.
- Configurable core
- Plugin manager (You can create your own plugins and use them in other projects)
- Controllers and Middlewares
- Default cors configuration method

**More features soon...**

Expand Down Expand Up @@ -162,6 +163,7 @@ AxonJs has some types which can help you in developing your applications for aut

- `AxonCoreConfig`: Type of core config object for configuration Axon core as you want.
- `AxonResponseMessage`: Type of core config option RESPONSE_MESSAGES.
- `AxonCorsConfig`: Type of core config option CORS.
- `Request`: Type of controller request param. (IncomingMessage)
- `Response`: Type of controller response param. (ServerResponse)
- `Headers`: Type of response headers. (OutgoingHeaders)
Expand All @@ -187,6 +189,7 @@ Configs:
- `LOGGER`: boolean to set core logger on or off. (default true)
- `LOGGER_VERBOSE`: boolean to set core logger in verbose mode. (default false)
- `RESPONSE_MESSAGES`: object to change default value of some core responses. (type: AxonResponseMessage)
- `CORS`: object to change core cors settings. (type: AxonCorsConfig)

### Running server

Expand Down
6 changes: 5 additions & 1 deletion docs/assets/navigation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion docs/assets/search.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d9bbb80

Please sign in to comment.