Skip to content

Commit 3a771d2

Browse files
committed
viacep: avoid user-agent block
1 parent 532b4a8 commit 3a771d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/viacep.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ export default function fetchViaCepService (cepWithLeftPad, proxyURL = '') {
99
method: 'GET',
1010
mode: 'cors',
1111
headers: {
12-
'content-type': 'application/json;charset=utf-8'
12+
'content-type': 'application/json;charset=utf-8',
13+
'user-agent': ''
1314
}
1415
}
1516

0 commit comments

Comments
 (0)