Skip to content

How to use the Claude API when hosting/running via claude-artifact-runner? #31

Description

@jlengrand

Hey there,

Super neat, very happy with it thank you!
Just a question I'm struggling to figure out at the moment. If the artifact you're creating makes use of the Claude API, Claude artifacts can handle that themselves and allow users to use their own account.

This does not seem to work when running using claude-artifact-runner. Here is the error I get :

Access to fetch at 'https://api.anthropic.com/v1/messages' from origin 'http://localhost:8000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

That seems logical from a security perspective, I'm just wondering how to go around this and still have self-hosted artifacts work as expected.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions