Skip to content

Commit aef622f

Browse files
bidi47alexmerlin
andauthored
Update docs/book/v5/core-features/error-reporting.md
Co-authored-by: Alex Karajos <alex.merlin.1985@gmail.com> Signed-off-by: bidi47 <bidi@apidemia.com>
1 parent 499d048 commit aef622f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/book/v5/core-features/error-reporting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ From then on, it's the frontend developer's job to set up an error reporting fun
107107
```javascript
108108
postError(body: object): Promise<any> {
109109
return new Promise((resolve, reject) => {
110-
return this.http.post(API_ENDPOINT + 'error-report', body , {headers: new HttpHeaders({'X-Workspace': 'TOKEN', 'Access-Control-Allow-Origin': '*'})})).subscribe({
110+
return this.http.post(API_ENDPOINT + 'error-report', body , {headers: new HttpHeaders({'Error-Reporting-Token': 'TOKEN', 'Origin': 'https://example.com'})})).subscribe({
111111
next: (response: any) => {
112112
resolve(response);
113113
},

0 commit comments

Comments
 (0)