Closed billzt closed 1 year ago
did you open the highlight link? it works on my mac
the second link https://chat.openai.com/api/auth/session
@josStorer Yes, I opened it. No problems.
Does you browser shows Unrecognized Content-Security-Policy directive 'require-trusted-types-for'. Refused to execute a script because its hash, its nonce, or 'unsafe-inline' does not appear in the script-src directive of the Content Security Policy.
in the console?
only Unrecognized Content-Security-Policy directive 'require-trusted-types-for'
, and seems that not related to this extension, even I disable all my extensions, it still displays
@josStorer OK.I edited the title.
However, no matter how many times I opened https://chat.openai.com/api/auth/session
, it still shows UNAUTHORIZED
Any method to debug it? e.g. using console window
BTW: chrome works OK. So there is no problem in my network.
I'm afraid you have to debug by building from the source code. At https://github.com/josStorer/chatGPT-search-engine-extension/blob/main/src/background/index.mjs#L20, you can use console.debug to display your config info, and view it through Safari - Develop - Web Extension Background Pages. At https://github.com/josStorer/chatGPT-search-engine-extension/blob/main/src/content-script/index.jsx#L50, you can check whether the accessToken has been correctly obtained.
the build steps are: npm install npm run build npm run build:safari
try this safari.dmg.zip, i added extra debug info
@josStorer Thank you. I have installed it (and disabled all other extensions)
But there is no debug info output.
check the console window of the background page and https://chat.openai.com/api/auth/session
I understand.
I missed Always Allow on Every Website
. I only allowed for google.com
I understand.
I missed
Always Allow on Every Website
. I only allowed for google.com
I did the same haha. Thanks, also allow on chat.openai.com and it worked
It shows:
And in the console:
I've tried to log in and refresh, but no use