Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inscriptions not displayed #3946

Open
gus4rs opened this issue Sep 13, 2024 · 8 comments
Open

Inscriptions not displayed #3946

gus4rs opened this issue Sep 13, 2024 · 8 comments

Comments

@gus4rs
Copy link

gus4rs commented Sep 13, 2024

Some multi layered inscriptions aren't being displayed in my local server. E.g, going to

https://ordinals.com/children/0e383b8af3e7f8767bc9ec0a48fbf837d82b0d537f4dbc7a8853e6828112ea41i0

Shows all the children of the ordinal collection

While going to the same URL in my local server doesn't display any image and doesn't log any error

http://server/children/0e383b8af3e7f8767bc9ec0a48fbf837d82b0d537f4dbc7a8853e6828112ea41i0

I am using version 0.2.0 with full indexing (--index-transactions --index-sats --index-runes )

Any clues on how to troubleshoot the issue?

@raphjaph
Copy link
Collaborator

Did you maybe set custom CSP headers?

@gus4rs
Copy link
Author

gus4rs commented Sep 13, 2024

No, I didn't

@raphjaph
Copy link
Collaborator

Ok so only recursive inscriptions aren't displayed and every other inscription is?

And there are no errors in the browser console? Not something like 404 or policy errors?

@gus4rs
Copy link
Author

gus4rs commented Sep 13, 2024

Yes, I can see simpler inscriptions, the issue is more complex ones that simply aren't displayed.

The console does print an error:

The Content Security Policy (CSP) prevents the evaluation of arbitrary strings as JavaScript to make it more difficult for an attacker to inject unathorized code on your site.
To solve this issue, avoid using eval(), new Function(), setTimeout([string], ...) and setInterval([string], ...) for evaluating strings.
If you absolutely must: you can enable string evaluation by adding unsafe-eval as an allowed source in a script-src directive

@gus4rs
Copy link
Author

gus4rs commented Sep 13, 2024

Also it prints tons of 404 errors, but so does ordinals.com

@gus4rs
Copy link
Author

gus4rs commented Sep 13, 2024

UPDATE: acessing through localhost works fine. Accessing through the wlan IP 192.168.1.88 fails
Do I need a DNS entry? Set any custom header via server command line?

@raphjaph
Copy link
Collaborator

Ah okay, I think it's a CSP issue. In order to make recursion work in Safari we had to add CSP headers to scope the permissions of the iframe. By default it will set the headers to the domain you specified and if not specified to the host your listening on so localhost. Could you post the exact command you used to start the server?

@gus4rs
Copy link
Author

gus4rs commented Sep 13, 2024

/usr/local/bin/ord --index-transactions --index-addresses --index-sats --index-runes --index-cache-size 500000000 --data-dir /ordinals/ --bitcoin-rpc-url 127.0.0.1:8332 --bitcoin-rpc-username bitcoin --bitcoin-rpc-password bitcoin server --http-port 1880 --polling-interval 10m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants