Code Monkey home page Code Monkey logo

Comments (3)

severak avatar severak commented on July 28, 2024

This is header sent by one of these instances that don't want to be included in iframe:

Content-Security-Policy: base-uri 'none'; default-src 'none'; frame-ancestors 'none'; script-src 'self' https://tiny.tilde.website 'wasm-unsafe-eval'; font-src 'self' https://tiny.tilde.website; img-src 'self' data: blob: https://tiny.tilde.website https://sbom.tilde.website; style-src 'self' https://tiny.tilde.website 'nonce-OKmA5+kZFXEk29O1FZSAZw=='; media-src 'self' data: https://tiny.tilde.website https://sbom.tilde.website; frame-src 'self' https:; child-src 'self' blob: https://tiny.tilde.website; worker-src 'self' blob: https://tiny.tilde.website; connect-src 'self' blob: data: wss://tiny.tilde.website https://tiny.tilde.website https://sbom.tilde.website; manifest-src 'self' https://tiny.tilde.website; form-action 'self'

see MDN article

I think better approach would be just render these into HTML itself.

from mastodon_digest.

hodgesmr avatar hodgesmr commented on July 28, 2024

I think that's probably a good solution. The HTML content of the post itself is available in the ScoredPost.info dictionary. @mauforonda has implemented this in a fork. Though, I'd like to keep a similar styling to the current iframe, but something like this is a probably next step.

from mastodon_digest.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.