Skip to content

Plugin badges on cordova.apache.org blocked by CSP #1503

@GitToTheHub

Description

@GitToTheHub

Bug Report

Problem

What is expected to happen?

  • shields.io and GitHub workflow badges for plugins should be displayed on cordova.apache.org like they are on the plugin readmes on GitHub, for example cordova-plugin-inappbrowser/README.md.

What does actually happen?

  • Badges are refused to load by Content security policy

Information

Web developer console error logs:

[Error] Refused to load https://img.shields.io/npm/v/cordova-plugin-inappbrowser/latest?label=Latest%20Release%20(npm) because it appears in neither the img-src directive nor the default-src directive of the Content Security Policy.
[Error] Refused to load https://img.shields.io/github/package-json/v/apache/cordova-plugin-inappbrowser?label=Development%20(Git) because it appears in neither the img-src directive nor the default-src directive of the Content Security Policy.
[Error] Refused to load https://github.com/apache/cordova-plugin-inappbrowser/actions/workflows/ci.yml/badge.svg?branch=master because it appears in neither the img-src directive nor the default-src directive of the Content Security Policy.
[Error] Refused to load https://github.com/apache/cordova-plugin-inappbrowser/actions/workflows/android.yml/badge.svg because it appears in neither the img-src directive nor the default-src directive of the Content Security Policy.
[Error] Refused to load https://github.com/apache/cordova-plugin-inappbrowser/actions/workflows/chrome.yml/badge.svg because it appears in neither the img-src directive nor the default-src directive of the Content Security Policy.
[Error] Refused to load https://github.com/apache/cordova-plugin-inappbrowser/actions/workflows/ios.yml/badge.svg because it appears in neither the img-src directive nor the default-src directive of the Content Security Policy.
[Error] Refused to load https://github.com/apache/cordova-plugin-inappbrowser/actions/workflows/lint.yml/badge.svg because it appears in neither the img-src directive nor the default-src directive of the Content Security Policy.
[Error] Refused to load https://github.com/apache/cordova-plugin-inappbrowser/actions/workflows/release-audit.yml/badge.svg?branch=master because it appears in neither the img-src directive nor the default-src directive of the Content Security Policy.

Command or Code

Environment, Platform, Device

Version information

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions