Authentication error when fetching API from claude in Chef Claude project

Hello Scrimba Support Team,

I’m encountering an issue with an Anthropic API integration in Chef Claude project. Despite setting up the API call with the recommended dangerouslyAllowBrowser: true parameter for CORS support, I’m still receiving a 401 Authentication Error.

Details:

  • Error message:

! Error: 401 {“type”:“error”,“error”:{“type”:“authentication_error”,“message”:“CORS requests are not allowed for this Organization because of its settings. If you believe this in error, contact support at https://support.anthropic.com/.”}}

Thank you for your assistance!

Stephen Hau

Hey @xtephenz, looping in our teacher in here for more insight.

@bobziroll did you find any work around for this issue?

hi check the scrimba DC’s advanced react channel. We have discussed this issue before. You need to create your own organization first in order to use the API. Otherwise, you will get the CORS message from the fetch request.

One of the community members in Scrimba created a video to illustrate how to do it if you need more guidelines. Feel free to join us there. :blush:

1 Like