Fix syntax error
This commit is contained in:
parent
1bc2c9a1f6
commit
2a6d840e6e
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ Let's see how it works step-by-step on example, for a cross-origin `PATCH` reque
|
||||||
let response = await fetch('https://site.com/service.json', {
|
let response = await fetch('https://site.com/service.json', {
|
||||||
method: 'PATCH',
|
method: 'PATCH',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json',
|
||||||
'API-Key': 'secret'
|
'API-Key': 'secret'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue