Fixes #22 adding User-Agent request header to bypass Incapsula protection of OSRS hiscore pages

This commit is contained in:
molo-pl
2021-01-12 15:37:19 +01:00
parent 0f68c1995c
commit cf8a4cc26e
4 changed files with 43 additions and 10 deletions

View File

@@ -37,7 +37,8 @@
"homepage": "https://github.com/maxswa/osrs-json-hiscores#readme",
"dependencies": {
"axios": "^0.21.1",
"jsdom": "^16.3.0"
"jsdom": "^16.3.0",
"useragent-generator": "^1.1.0"
},
"devDependencies": {
"@types/jest": "^24.0.14",