You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the endpoint server doesn't enable cors, qa.ui.instructlab.ai and ui.instructlab.ai both will hit the folllowing error
Access to fetch at 'https://XXXX/v1/chat/completions' from origin 'https://qa.ui.instructlab.ai/' 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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
vishnoianil
changed the title
Chatting with customer endpoint throws cors error if hosted server disables the cors
Chatting with custom endpoint throws cors error if cors is disabled in endpoint server
Oct 9, 2024
If the endpoint server doesn't enable cors, qa.ui.instructlab.ai and ui.instructlab.ai both will hit the folllowing error
Access to fetch at 'https://XXXX/v1/chat/completions' from origin 'https://qa.ui.instructlab.ai/' 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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
cc: @mingxzhao
The text was updated successfully, but these errors were encountered: