Skip to content

Commit f648cda

Browse files
authored
fix: Add accept headers to silence 401 Unauthorized error (#1865)
1 parent 3bbb503 commit f648cda

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apify-docs-theme/static/js/custom.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ function clearMcpRedirectCache() {
145145
fetch('https://mcp.apify.com/', {
146146
method: 'get',
147147
cache: 'reload',
148+
headers: {
149+
Accept: 'text/html',
150+
},
148151
}).then(() => {
149152
// Cache cleared successfully
150153
}).catch(() => {

0 commit comments

Comments
 (0)