Topic: detect-autofill.js violates CSP unsafe-inline

ostrowsk priority asked 2 years ago


Expected behavior I don't want to use inline styles! I have the uncompressd JS on our staging Server See: https://advolat-staging.admost.de/

Actual behavior detect autofill is imported via mdb and causes JS error: violates CSP unsafe-inline

Resources (screenshots, code snippets etc.) I use webpack and following imports:

import Carousel from '../node_modules/mdb-ui-kit/src/mdb/js/free/carousel'; // carousel import MultiCarousel from '../node_modules/mdb-ui-kit/src/plugins/multi-carousel/js/multi-carousel'; // multi carousel import Lightbox from '../node_modules/mdb-ui-kit/src/mdb/js/pro/lightbox'; // lightbox import Select from '../node_modules/mdb-ui-kit/src/mdb/js/pro/select'; // lightbox

Same error: https://stofferia.de


Michał Duszak staff answered 2 years ago


We compile detect-autofill with webpack - using source code directly in your app could cause those errors. It looks like the problem lays in app configuration, not MDB package.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.10.1
  • Device: PC
  • Browser: Chrome
  • OS: Win, Linux, Mac
  • Provided sample code: No
  • Provided link: Yes
Tags