Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added CORS support for the monitoring server (#4423)
- [x] Link to issue, e.g. `Resolves #NNN` - [ ] Documentation added (if applicable) - [x] Tests added - [ ] Branch rebased on top of current main (`git pull --rebase origin main`) - [ ] Changes squashed to a single commit (described [here](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html)) - [ ] Build is green in Travis CI - [x] You have certified that the contribution is your original work and that you license the work to the project under the [Apache 2 license](https://github.com/nats-io/nats-server/blob/main/LICENSE) Resolves #4422 ### Changes proposed in this pull request: - Added `Access-Control-Allow-Origin` header to allow CORS requests for the monitoring server - Added a check in the tests for the header when the `Content-Type` is `application/json`
- Loading branch information