Coder Social home page Coder Social logo

astro-meta-tags's Introduction

astro-meta-tags's People

Contributors

nint8835 avatar patrick91 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

bryanschuetz

astro-meta-tags's Issues

Add validations

It would be nice to have some (configurable) validation:

  • Title missing
  • OG missing
  • X missing
  • Images not working
  • Canonical URL missing

Not sure what else 😊

add twitter, icons & charset

This is a list that you can add.

Icons:

  • Apple-Touch
  • Icon Image/x-icon

Twitter:

  • Image
  • Card
  • Title
  • Description
  • Creator

Npm install fails with: does not provide an export named 'Logger'

When installing the package I get this error: The requested module '../core/logger/core.js' does not provide an export named 'Logger' import { Logger } from "../core/logger/core.js"; ^^^^^^ SyntaxError: The requested module '../core/logger/core.js' does not provide an export named 'Logger' at ModuleJob._instantiate (node:internal/modules/esm/module_job:132:21) at async ModuleJob.run (node:internal/modules/esm/module_job:214:5) at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)

Addon is vulnerable to XSS / incorrectly rendering data

Description

Currently, this library uses string templating to include user-provided data without any escaping, which leaves it open to XSS. As this is only accessible locally the risk is pretty low, but this also causes potentially valid meta tags to render incorrectly in the UI.

Reproduction

Create an astro file containing the following content:

<html>
    <head>
        <meta name="description" content="<img src='https://picsum.photos/200' />" />
    </head>
</html>

Open the page & open the meta tags toolbar window. You should see the description field having an img tag injected into it.

image

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.