Skip to content

Commit 6703c0c

Browse files
reithordabrt
andauthored
Added link to JS test example (#2945)
* Added link to JS test example * Update docs/api/rest_api/rest_api_usage/rest_responses.md --------- Co-authored-by: Tomasz Dąbrowski <[email protected]>
1 parent 58139f0 commit 6703c0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/rest_api/rest_api_usage/rest_responses.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ The CORS bundle adds an `Access-Control-Allow-Origin` header to the response.
149149

150150
To enable CORS, add regular expression for an allowed domain using the `.env` variable `CORS_ALLOW_ORIGIN`.
151151

152-
For example, to allow the JS test above to be executed alongside this page, you could add the following to an `.env` file (like the `.env.local`): `CORS_ALLOW_ORIGIN=^https?://doc.ibexa.co`.
152+
For example, to allow the [JS test](testing_rest_api.md#js) to be executed alongside this page, you could add the following to an `.env` file (like the `.env.local`): `CORS_ALLOW_ORIGIN=^https?://doc.ibexa.co`.
153153

154154
To add several domains, filter on URIs, or change the default (like not allowing all the methods), refer to [NelmioCorsBundle Configuration Documentation](https://symfony.com/bundles/NelmioCorsBundle/current/index.html#configuration) to learn how to edit `config/packages/nelmio_cors.yaml`.
155155

0 commit comments

Comments
 (0)