Hello Ana Belen Rincon Saenz,
Welcome to Microsoft Q&A!
We are very sorry for the delay in giving you a response to your topic in this forum. If you still have the same problem, it sounds like you're encountering a common Cross-Origin Resource Sharing (CORS) issue. Here are a few steps you can take to resolve this:
Check Server-Side CORS Configuration: Ensure that your server is configured to include the Access-Control-Allow-Origin
header in its responses. This header should specify the origin that is allowed to access the resource. For example:
Access-Control-Allow-Origin: https://appservicesopenai.azurewebsites.net
Handle Preflight Requests: CORS preflight requests are sent by the browser to check if the actual request is safe to send. Make sure your server responds to these preflight requests with the appropriate headers:
Access-Control-Allow-Methods: GET, POST, OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization
Use a Proxy Server: If you can't modify the server's CORS settings, you can use a proxy server to make the request on behalf of your client. This way, the request appears to come from the same origin.
Browser Extensions: For development purposes, you can use browser extensions that disable CORS restrictions. However, this is not recommended for production environments due to security risks.
Verify Configuration: Double-check your CORS configuration in the indexer to ensure it's correctly set up. Sometimes, small typos or misconfigurations can cause issues.
In case you need the source documentation: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors.
Additionally, please kindly note that if we do not receive a response to this thread within 4 business days, we will consider it closed. In case you have the same question, and the information provided was not useful, feel free to create another thread and we will be more than happy to help you.
Regards,
Gao
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".