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

Commit dbaf4d4

Browse files
authored
Added configuration of CORS to table and link
1 parent b0822df commit dbaf4d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ Edit the default configuration of the server by adding options to your **laravel
9191
| `sslCertChainPath` | `''` | The path to your server's ssl certificate chain |
9292
| `sslPassphrase` | `''` | The pass phrase to use for the certificate (if applicable) |
9393
| `socketio` | `{}` | Options to pass to the socket.io instance ([available options](https://github.com/socketio/engine.io#methods-1)) |
94+
| `apiOriginAllow` | `{}` | Configuration to allow API be accessed over CORS. [Example](#cross-domain-access-to-api)|
9495

9596
### Running with SSL
9697

@@ -186,7 +187,7 @@ List of users on a channel.
186187
GET /apps/:APP_ID/channels/:CHANNEL_NAME/users
187188
```
188189

189-
**Cross Domain Access To API**
190+
## Cross Domain Access To API
190191
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 works since it's read only data, at least as of right now) and the allow headers to allow to the API to receive.
191192

192193
Example below:

0 commit comments

Comments
 (0)