Giter Site home page Giter Site logo

Comments (5)

kraih avatar kraih commented on July 24, 2024

I'm not seeing any problems with Chrome, Firefox, Safari and Edge. Which browser are you referring to?

from minion.

ChristophB avatar ChristophB commented on July 24, 2024

It happens to me in Chrome, Edge and Opera.

I get the following errors in the browser console:

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'nonce-<nonce-token>' 'unsafe-eval'".
Either the 'unsafe-inline' keyword, a hash ('sha256-eTNeYPL/SYISrqGh2NIwa4AvEW6t7UxO3jPechjijFE='), or a nonce ('nonce-...') is required to enable inline execution.

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'nonce-<nonce-token>' 'unsafe-eval'".
Either the 'unsafe-inline' keyword, a hash ('sha256-Chlzz1cxGvHFIiw/mqDWMg9L5HqwdegP+fJTsLTibhc='), or a nonce ('nonce-...') is required to enable inline execution.

Both errors refer to the following <script> tags:



Of course i could add the displayed hashes to the CSP directive, but they must be updated whenever the <script> tags change.

from minion.

kraih avatar kraih commented on July 24, 2024

I cannot replicate those findings, it works perfectly for me as is.

from minion.

ChristophB avatar ChristophB commented on July 24, 2024

I could reproduce the behavior with the following Mojolicious lite app:

use Mojolicious::Lite;

hook after_dispatch => sub {
    shift->res->headers->content_security_policy("script-src 'self';");
};

plugin Minion => { Pg => 'postgresql://db_user:db_pass@db/test' };
plugin 'Minion::Admin';

app->start;

Here is a ZIP archive, which contains the app.pl file as well as a Dockerfile and docker-compose.yml file to build the Docker container i used for this example: minion-issue-89.zip

Just run docker-compose up and navigate to http://localhost:3000/minion.

from minion.

kraih avatar kraih commented on July 24, 2024

Ah, you're breaking it yourself, now i get it. Guess that makes this a "wontfix".

from minion.

Related Issues (20)

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.