Skip to content

Commit 1ace647

Browse files
committed
updated cors
1 parent f73c367 commit 1ace647

File tree

1 file changed

+2
-2
lines changed
  • src/content/docs/pipelines/sources

1 file changed

+2
-2
lines changed

src/content/docs/pipelines/sources/http.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ If you want to use your Pipeline to ingest client side data, such as website cli
6565

6666
Without setting your CORS settings, browsers will restrict requests made to your Pipeline endpoint. For example, if your website domain is `https://my-website.com`, and you want to post client side data to your pipeline at `https://<PIPELINE-ID>.pipelines.cloudflare.com`, without CORS settings, the request will fail.
6767

68-
To fix this, you need to configure your Pipeline to accept requests from `https://my-website.com`. You can do so while creating or updating a pipeline, using the flag `--cors-origins`. You can specify multiple domains separated by a comma and a space.
68+
To fix this, you need to configure your Pipeline to accept requests from `https://my-website.com`. You can do so while creating or updating a pipeline, using the flag `--cors-origins`. You can specify multiple domains separated by a space.
6969

7070
```sh
71-
$ npx wrangler pipelines update [PIPELINE-NAME] --cors-origins "https://mydomain.com", "http://localhost:8787"
71+
$ npx wrangler pipelines update [PIPELINE-NAME] --cors-origins https://mydomain.com http://localhost:8787
7272
```
7373

7474
You can specify that all cross origin requests are accepted. We recommend only using this option for testing Pipelines, and not for production use cases.

0 commit comments

Comments
 (0)