Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 62a0738

Browse files
committed
Updates to the readme file.
1 parent 26f0b8b commit 62a0738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ GET /apps/:APP_ID/channels/:CHANNEL_NAME/users
188188
```
189189

190190
## Cross Domain Access To API
191-
Cross domain access can be specified in laravel-echo-server.json file by changing `allowCors` in `apiOriginAllow` to `true`. You can then set the CORS origin domain you want to allow, the http allow methods as a comma separated string (only GET and POST works as of right now) and the allow headers to allow to the API to receive.
191+
Cross domain access can be specified in the laravel-echo-server.json file by changing `allowCors` in `apiOriginAllow` to `true`. You can then set the CORS Access-Control-Allow-Origin, Access-Control-Allow-Methods as a comma separated string (GET and POST are enabled by default) and the Access-Control-Allow-Headers that the API can receive.
192192

193193
Example below:
194194

@@ -203,7 +203,7 @@ Example below:
203203
}
204204

205205
```
206-
This allows you to ping the API via AJAX calls from your app that could be running on the same domain but different port or it could be entirely different domain.
206+
This allows you to send requests to the API via AJAX from an app that may be running on the same domain but a different port or an entirely different domain.
207207

208208
## Database
209209

0 commit comments

Comments
 (0)