ordinals / ord

๐Ÿ‘โ€๐Ÿ—จ Rare and exotic sats
https://ordinals.com
Creative Commons Zero v1.0 Universal
3.85k stars 1.38k forks source link

Inscription Sandbox Content Security Policy directive: /output/ ๐Ÿ™ #3966

Closed 1stBitcoinSent closed 1 month ago

1stBitcoinSent commented 1 month ago

๐Ÿ™ please support Content Security Policy directive: https://ordinals.com/output/ ๐Ÿ™

Would be Awesome ๐Ÿ˜ if the Inscription Sandbox allowed anything under https://ordinals.com/* to be accessed ๐Ÿ™

cryptoni9n commented 1 month ago

Hi @1stBitcoinSent - have you tried using the ord env --proxy flag? If so, could you please explain in more detail what you are trying to do that isn't currently supported by it?

1stBitcoinSent commented 1 month ago

Hi @cryptoni9n Thank you ๐Ÿ˜€ drafting an HTML inscription that fetches data from /output/ I can fetch data from /r/ as it is included in the Content Security Policy directive

Refused to connect to 'https://ordinals.com/output/x' because it violates the following Content Security Policy directive: "default-src https://ordinals.com/content/ https://ordinals.com/blockheight https://ordinals.com/blockhash https://ordinals.com/blockhash/ https://ordinals.com/blocktime https://ordinals.com/r/ 'unsafe-eval' 'unsafe-inline' data: blob:". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback

lifofifoX commented 1 month ago

@1stBitcoinSent All recursive endpoints need to be under /r/ namespace. If you wish to add a new recursive endpoint (i.e /r/output), you'd need to submit a PR that implements the new endpoint, along with reasoning to convince the protocol team re: why it's a good addition.

1stBitcoinSent commented 1 month ago

@lifofifoX Thank you for letting me know ๐Ÿงก Will think on this ๐Ÿ˜€ Looking forward to the day I can secure some Wizards ๐Ÿง™โ€โ™‚๏ธ