JSFiddle - React, Tailwind, and code Playground

by joshuatz

HTML

<head>
    <style>
        body {
            background-color: darkgrey;
        }
    </style>
</head>

<body>
    <a href="https://youtu.be/xVMsAgHy_IY?t=593">Youtube video</a><br>
    <!-- Trains are one of the coolest thing on earth tbh -->
    <br>
    <a href="https://fr.wikipedia.org/wiki/Prost_AP03">Wikipedia</a><br>
    <br>
    <a href="https://twitter.com/SpaceX/status/1178129849057038337" id="tweet">Tweet</a><br>
    <br>
    <a href="https://old.reddit.com/r/test/comments/agi5zf/test/eed190g/">Reddit comment</a><br>
    <br/>
    <a href="https://www.reddit.com/r/dogpictures/comments/7bgy66/abby_is_being_so_patient_with_the_new_puppy/">Reddit Post / Thread</a>
    <br/>
</body>

JavaScript

// Add CSP meta tag that will block cross-origin AJAX
var cspMetaTag = document.createElement('meta');
cspMetaTag.setAttribute('http-equiv', 'Content-Security-Policy');
cspMetaTag.setAttribute('content', "connect-src 'self';");
document.querySelector('head').appendChild(cspMetaTag);