Hi!
I want to create a floating menu with a WebView that uses AI. Unfortunately, OpenAI has a CORS block that prevents this, and an error appears in the console.
Origin presetfile://ai_search.html is not allowed by Access-Control-Allow-Origin. Status code: 401
Does anyone have any idea how to bypass this?
Could you post an example of a webview setup that can reproduce this?
I have all the default settings in the newly created Floating Menu with WebView except for the link to this file.
ai_search.html (10.5 KB)
I currently can't test but I think this is not a CORS block by OpenAI. Could you check whether it works if you enter the full HTML directly in the webview config instead of entering the presetfile path?
Okay, I managed to solve the problem on my own. Indeed, I had an error in JavaScript, but I have already fixed it. Sorry