chatgpt-google-extension
chatgpt-google-extension copied to clipboard
when set extension site access to specific sites in chrome, we need add chat.openai.com in the list or it will encount cors error.
Is it a bug?
Is this an error message you encountered?
Access to fetch at 'https://chat.openai.com/api/auth/session' from origin 'chrome-extension://admendnbolgfafdbjdgdahlelnflpgia' has been blocked by CORS policy: 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. background.js:440 Error: UNAUTHORIZED at getAccessToken (background.js:391:13) at async getAnswer (background.js:397:25) at async background.js:436:9
Have you logged in and been able to use https://chat.openai.com the web page to chat?
Yes and when I add the https://chat.openai.com/* to the specific sites it works.
Which field have you added it into? host_permissions?
I changed Extensions Detail > Site access > Allow this extension to read and change all your data on websites you visit from On all sites to On specific sites.
I was not able to make it work for specific sites (tried google.com) even after allowing chat.openai.com also.
I also could not make it work setting on click. The extensions image background becomes white, and clicking it says: reload page to use this extension, even after reloading many times.
(tested both in chrome and brave).
I was not able to make it work for specific sites (tried
google.com) even after allowingchat.openai.comalso. I also could not make it work settingon click. The extensions image background becomes white, and clicking it says: reload page to use this extension, even after reloading many times. (tested both in chrome and brave).
I think you need specific the site like this https://chat.openai.com/*