Skip to content

Can't use feature flags in react native web #396

@santitopo

Description

@santitopo

Hi! I would really like to adopt mixpanel's feature flags. In mobile they are working just fine with Expo, but in my Expo web project, I hit this error and it just fallbacks to whatever value I defined as default.

Access to fetch at 'https://api.mixpanel.com/flags?context=%7B%22distinct_id%22%3A%220503af1c-ed80-4a6a-bb12-621303b7f78a%22%2C%22device_id%22%3A%22cc8e4557-7622-463a-916b-341708b07293%22%7D&token=2952741e618ce6f429e11759178e433b&mp_lib=react-native&%24lib_version=3.2.0-beta.3&ip=1' from origin 'XXXX' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

GET https://api.mixpanel.com/flags?context=%7B%22distinct_id%22%3A%220503af1c-ed80-4a6a-bb12-621303b7f78a%22%2C%22device_id%22%3A%22cc8e4557-7622-463a-916b-341708b07293%22%7D&token=2952741e618ce6f429e11759178e433b&mp_lib=react-native&%24lib_version=3.2.0-beta.3&ip=1 net::ERR_FAILED 401 (Unauthorized)

Would be amazing if you could fix it.

By the way, any expected dates when feature flags will be added as stable feature in the library? im using 3.2.0-beta.3 right now.

Thank you in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions