You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -188,7 +188,7 @@ GET /apps/:APP_ID/channels/:CHANNEL_NAME/users
188
188
```
189
189
190
190
## 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.
192
192
193
193
Example below:
194
194
@@ -203,7 +203,7 @@ Example below:
203
203
}
204
204
205
205
```
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.
0 commit comments