Cannot Use or Enable Plugins

Hello,

I’m experiencing issues with my Obsidian vault recently, and I have done some troubleshooting steps but can’t find out the reason why. For some reason, I can’t enable plugins after installing or disabling them. The Remotely Save plugin also doesn’t work, and when I type the command to sync, nothing happens.

What I’m Trying to Do

I’m trying to:

  • Sync my notes across devices using the Remotely Save plugin.
  • Use other plugins such as Thino, Style Settings, Paste Image Rename, etc.

Things I Have Tried

  1. Reloaded Obsidian multiple times without saving.
  2. Installed the latest Obsidian versions, including the installer one.
  3. Entered Restricted Mode to disable all the plugins. When I turned that off, some plugins remained off while others were fine. This process seems inconsistent each time.
  4. Opened the console log but couldn’t understand it fully.

Console Log

Here’s a snippet from the console log showing the errors:

Uncaught (in promise) EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' https://app.khoj.dev https://*.obsidian.md https://app.khoj.dev https://assets.khoj.dev 'unsafe-inline'".

    at new Function (<anonymous>)
    at Template.compile (plugin:smart-connections:2587:18)
    at Object.compile (plugin:smart-connections:2418:24)
    at handleCache (plugin:smart-connections:2340:27)
    at exports4.render (plugin:smart-connections:2426:18)
    at ScSmartView2.render_template (plugin:smart-connections:5184:20)
    at ScSmartView2.initialize (plugin:smart-connections:9173:41)
plugin:smart-connections:2587 Uncaught (in promise) EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' https://app.khoj.dev https://*.obsidian.md https://app.khoj.dev https://assets.khoj.dev 'unsafe-inline'".

    at new Function (<anonymous>)
    at Template.compile (plugin:smart-connections:2587:18)
    at Object.compile (plugin:smart-connections:2418:24)
    at handleCache (plugin:smart-connections:2340:27)
    at exports4.render (plugin:smart-connections:2426:18)
    at ScChatsUI.render (plugin:smart-connections:4891:35)
    at ScChatsUI.init (plugin:smart-connections:4909:47)
    at async ScChats.new (plugin:smart-connections:6521:9)
    at async ScChatView2.initialize (plugin:smart-connections:5262:9)
app.js:1 Refused to connect to 'https://api.obsidian.md/user/info' because it violates the following Content Security Policy directive: "connect-src https://app.khoj.dev wss://*.obsidian.md/ https://ipapi.co/json".

(anonymous) @ app.js:1
app.js:1 Refused to connect to 'https://api.obsidian.md/user/info' because it violates the document's Content Security Policy.
(anonymous) @ app.js:1
app.js:1 Uncaught (in promise) TypeError: Failed to fetch
    at app.js:1:2027316
    at app.js:1:237079
    at Object.next (app.js:1:237184)
    at app.js:1:236100
    at new Promise (<anonymous>)
    at v (app.js:1:235845)
    at IK (app.js:1:2027218)
    at app.js:1:2028236
    at app.js:1:237079
    at Object.next (app.js:1:237184)
app.js:1 Plugin failure: obsidian-style-settings EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' https://app.khoj.dev https://*.obsidian.md https://app.khoj.dev https://assets.khoj.dev 'unsafe-inline'".

    at eval (<anonymous>)
    at app.js:1:2289086
    at e.<anonymous> (app.js:1:2289187)
    at app.js:1:237079
    at Object.next (app.js:1:237184)
    at a (app.js:1:235902)
(anonymous) @ app.js:1
index.html:1 Refused to load the stylesheet 'https://unpkg.com/[email protected]/dist/katex.min.css' because it violates the following Content Security Policy directive: "style-src 'unsafe-inline' 'self' https://fonts.googleapis.com". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback.

index.html:1 Refused to load the stylesheet 'https://unpkg.com/[email protected]/dist/katex.min.css' because it violates the following Content Security Policy directive: "style-src 'self' https://app.khoj.dev https://*.obsidian.md https://app.khoj.dev https://assets.khoj.dev 'unsafe-inline'". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback.

Additional Information

  • Operating System: Windows 11 Home
  • Obsidian Version: v1.6.3
  • Recent Changes: I briefly switched to Syncthing for syncing my notes and then switched back to Remotely Save, which is when issues started to happen. This might have contributed to the issue, but I’m not sure.

If anyone has experienced a similar issue or has any advice, I would greatly appreciate your help!

Thanks in advance

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.