Skip to content

🐛 BUG: The 'credentials' field on 'RequestInitializerDict' is not implemented. #2514

@Kaperstone

Description

@Kaperstone

Which Cloudflare product(s) does this pertain to?

Workers/Other

What version of Wrangler are you using?

2.6.2

What operating system are you using?

Windows

Describe the Bug

I am testing locally
EDIT: To emphasize, when I press L to test locally, it is working fine but when I deploy to Cloudflare or turn local mode off, it is showing the error.

Whenever I include credentials in the header of a fetch request, I am receiving this error.
This has became an issue since I ably-js has stopped working entirely throwing this error.

I use hono.js to simplify the usage of workers so basically a reproduction would be

import {Hono} from "hono"

app.get("/", ctx => {
  new fetch("https://example.com/api/", {
  headers,
  method: "POST",
  body: "",
  credentials: headers.has("authorization") ? "include" : "same-origin"
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions