-
|
I have encountered error when using flipt-web with OpenFeature, does anyone know what could be possible reasons? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
|
Hi @tituscarl! I'm Dosu and I’m helping the flipt team. CORS is disabled by default in Flipt, which is why you're seeing this error. You need to explicitly enable it. Quick fix — add to your Flipt configuration: cors:
enabled: true
allowed_origins:
- "http://localhost:5173"Or via environment variables in your Kubernetes deployment: env:
- name: FLIPT_CORS_ENABLED
value: "true"
- name: FLIPT_CORS_ALLOWED_ORIGINS
value: "http://localhost:5173"After updating, restart your Flipt deployment for the changes to take effect. The CORS middleware applies to all HTTP endpoints including the To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
I have also done setting this in my deployment, is there anything I missed? |
Beta Was this translation helpful? Give feedback.
-
|
Hey @tituscarl There were few bugs related to this and you are running not the latest versions. |
Beta Was this translation helpful? Give feedback.
Please give it a try @tituscarl