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

Commit fa4e729

Browse files
authored
Remembered that POST works to add events to the API
1 parent dbaf4d4 commit fa4e729

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
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 works since it's read only data, at least as of right now) and the allow headers to allow to the API to receive.
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.
192192

193193
Example below:
194194

@@ -197,7 +197,7 @@ Example below:
197197
"apiOriginAllow":{
198198
"allowCors" : true,
199199
"allowOrigin" : "http://127.0.0.1",
200-
"allowMethods" : "GET",
200+
"allowMethods" : "GET, POST",
201201
"allowHeaders" : "Origin, Content-Type, X-Auth-Token, X-Requested-With, Accept, Authorization, X-CSRF-TOKEN, X-Socket-Id"
202202
}
203203
}

0 commit comments

Comments
 (0)