© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•3mo ago•
1 reply
Xaidutinut

403 from a fetch request from a Worker

WranglerWorkers
Hello, I use Hono for my Worker and there I have a specific endpoint, where I basically proxy a request from one of the delivery company in my country to my users to see their available office locations.
My issue with it is that I get error "403 - Your connection is using an outdated security protocol. Please upgrade your browser." when I call their public API. I got in touch with the company, but they told me that everything is okay from their side, so I believe the issue is in my network setup of the Worker. This is my endpoint code:
const SPEEDY_API_BASE_URL = 'https://api.speedy.bg/v1';
const speedyUser = await c.env.SPEEDY_USER.get();
const speedyPass = await c.env.SPEEDY_PASS.get();
const requestBody: SpeedyFindOfficeRequest = {
  userName: speedyUser,
  password: speedyPass,
  language: 'BG',
  countryId: 100, // Bulgaria
};
const response = await fetch(`${SPEEDY_API_BASE_URL}/location/office`, {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(requestBody)
});
const SPEEDY_API_BASE_URL = 'https://api.speedy.bg/v1';
const speedyUser = await c.env.SPEEDY_USER.get();
const speedyPass = await c.env.SPEEDY_PASS.get();
const requestBody: SpeedyFindOfficeRequest = {
  userName: speedyUser,
  password: speedyPass,
  language: 'BG',
  countryId: 100, // Bulgaria
};
const response = await fetch(`${SPEEDY_API_BASE_URL}/location/office`, {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(requestBody)
});


Also this is the beginning of my
wrangler.jsonc
wrangler.jsonc
:
"$schema": "node_modules/wrangler/config-schema.json",
"name": "ui",
"main": "./worker/index.ts",
"compatibility_date": "2025-10-06",
"compatibility_flags": ["nodejs_compat"],
"workers_dev": false,
"$schema": "node_modules/wrangler/config-schema.json",
"name": "ui",
"main": "./worker/index.ts",
"compatibility_date": "2025-10-06",
"compatibility_flags": ["nodejs_compat"],
"workers_dev": false,


It is good to mention, that when I run my worker locally it works. If someone has an idea how I could resolve this issue it would be great. 🙂
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Workern to worker fetch 1042
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3mo ago
How to call a Worker from another Worker (403)
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago