Hello, everyone, there is an alternative to using ...
# developers
a
Hello, everyone, there is an alternative to using the @calcom/embed-react lib in the cal self-hosting version?.
I solved, with calOrigin property thx.
👍 1
🎉 1
👍🏻 1
a
Hi All. I tried to use calOrigin with the vanilla JS widget and it fails. I get "Error Code: 404. Cal Link seems to be wrong."
Copy code
Cal("inline", {
        elementOrSelector: "#test1", // You can also provide an element directly
        calOrigin: "http://localhost:3000",
        calLink: "john-doe-username", // The link that you want to embed. It would open https://cal.com/jane in embed
        config: {
            name: "Test1", // Prefill Name
            email: "test1@test.com", // Prefill Email
            notes: "Test Meeting", // Prefill Notes
            guests: ["test@gmail.com"], // Prefill Guests
            theme: "dark", // "dark" or "light" theme
        },
    });