Skip to content

Commit

Permalink
[#58] Allow all origins (#63)
Browse files Browse the repository at this point in the history
Signed-off-by: ruromero <[email protected]>
  • Loading branch information
ruromero authored Mar 16, 2023
1 parent a431bd3 commit 79a5a60
Show file tree
Hide file tree
Showing 6 changed files with 838 additions and 4,982 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
name: "Build native images"
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,15 @@ namespace will be the current namespace.
./target/cloudevents-player-1.3-SNAPSHOT-runner -Dbroker.name=example -Dbroker.namespace=other
...
2022-06-24 19:08:53,681 INFO [com.git.rur.clo.ser.MessageService] (ForkJoinPool.commonPool-worker-3) Player mode KNATIVE - broker: http://broker-ingress.knative-eventing.svc.cluster.local/other/example
```
```

## CORS

By default the cloudevents player will allow all origins but it is possible to defined the allowed origins with the following environment variable:

```
- name: QUARKUS_HTTP_CORS_ORIGINS
value: https://cloudevents-player-myns.apps.example.com
```

See the [Quarkus CORS documentation](https://quarkus.io/guides/http-reference#cors-filter) for more configuration parameters.
Loading

0 comments on commit 79a5a60

Please sign in to comment.