Problem/Motivation
<script src="/modules/contrib/klaro/js/klaro_placeholder.js" defer="defer" data-type="text/javascript" type="text/plain" data-name="unknown_app" data-src="https://js.stripe.com/v3/"></script>
is being auto-blocked. Guess we should add a service for stripe?
(Added through commerce_stripe in our case.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | klaro-3568262-MR117-10.patch | 787 bytes | lrwebks |
Issue fork klaro-3568262
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
anybodyI think we should make this functional and required?
Comment #4
anybodyMhm even with
opt_out: trueand all config like in the MR, the JS is being auto-blocked if no consent is given:<script src="/modules/contrib/klaro/js/klaro_placeholder.js" defer="defer" data-type="text/javascript" type="text/plain" data-name="stripe" data-src="https://js.stripe.com/v3/"></script>The log entry was:
I would expect that with
<code>opt_out: truethe script should not get blocked server-side?I finally entered the following sources but with no luck:
What am I doing wrong?
Comment #5
anybodyEven with
Block unknown sourcesdisabled (and yes, all caches cleared) the script is blocked?!Comment #6
anybodyOkay I created #3568267: Scripts matching source + Opt-Out + Toggled by default (+required) should not get blocked server-side because I think blocking such scripts server-side is unexpected logically from the users perspective.
Otherwise I don't see a way to not block such scripts server-side at all, so that they can be loaded
Disabling the handling is currently only possible through global settings then.
Comment #8
grevil commentedLGTM!
Only removed "js.stripe.com", since "stripe.com" already matches that case.
Comment #9
anybodyThanks @grevil yes that was just a test because I wasn't able to make it work as expected due to #3568267: Scripts matching source + Opt-Out + Toggled by default (+required) should not get blocked server-side
I think a broad match for stripe.com makes sense.
Comment #10
lrwebks commentedStatic patch until this is merged
Comment #13
jan kellermann commentedThank you for this issue and new service. I merged for next release.