Content Security Policy #1236
Replies: 3 comments
-
|
What are you doing exactly? You cant call foreign scripts from within Part-DB. Accessing part-dbs API should not be restricted by CSP. |
Beta Was this translation helpful? Give feedback.
-
|
First, my project: I want to store my components in a shelving system where each box has an LED behind it, and I want to use this LED to highlight the currently searched component so that it’s easier to find in a larger storage setup — and because it just looks cool in my imagination. I watched this video: With his userscript it worked, but he only looked up the ID number. My userscript got the partlocatin corekt but got an error while sending it to node-red Right now I’m trying to use a userscript to find the storage location of the component I’m currently searching for on the website and send it to my Node-RED instance, so that it can be forwarded to my LEDs. I don’t know everything that’s available in your app. Maybe you can download add-ons that communicate directly with a controller like an ESP32 or a Raspberry Pi, and then you can control the LEDs directly. Thanks in any case for the quick response and reply. I hope this helps you better understand what I want to implement. |
Beta Was this translation helpful? Give feedback.
-
|
I identified the root cause of the issue and have created comprehensive documentation for the entire project. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Objective: I want to create an interactive storage system with a live light behind the correct shelf that corresponds to the item I'm looking for in Part-DB. I plan to use a userscript to identify the item's storage location, but a security error is preventing me from sending the storage ID to my Node-RED instance for further processing.
Problem: I get this error when my userscript tries to send data:
Connecting to 'http://localhost:1880/...' violates the Content Security Policy (CSP) directive: "default-src 'self'". The action has been blocked.
Question: Is there a way to edit this CSP to allow connections to my Node-RED instance, or is there a different method to work around this issue?

Beta Was this translation helpful? Give feedback.
All reactions