How to move webworkConfig out of inline JavaScript in templates/layouts/system.html.ep
Maintainer thường phản hồi trong vòng 4 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 18/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- javascript, perl
Hướng nghiên cứu
The inline script block that sets webworkConfig lives in templates/layouts/system.html.ep, and htdocs/js/System/system.js is the candidate home for the static part. The maintainer has not chosen an approach, so first decide how the URL value gets passed to the page, which is a design question. Done means the page works with a Content-Security-Policy that omits unsafe-inline for script-src.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I am interested in getting the core WW2 functionality to work with a Content-Security-Policy which does not use unsafe-inline for script-src.
I'm not sure what is the best approach to replace the script block in templates/layouts/system.html.ep which sets the value of webworkConfig (and the value of webwork_url inside that object).
It seems one option would be to create a .js.ep template file, and have the controller handle requests for that file.
I'm not sure if it feasible to just add the standard value into htdocs/js/System/system.js and then somehow update that value if needed via a value passed in somehow in the HTML code (via a hidden form field?).
At present, I am working around this by using a hash value for the script block generated in the CSP. It could be that might remain the best approach, at least for now.
@drgrice1 Your advice on how to best approach this would be appreciated.
- Ngôn ngữ chính
- Perl
- Star
- 164
- Fork
- 167
- Merge trung bình
- 6 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 27
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của openwebwork/webwork2
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
openwebwork/webwork2#3295 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
openwebwork/webwork2#3290 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
openwebwork/webwork2#2997 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 56/100
openwebwork/webwork2#3276 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
openwebwork/webwork2#3272 · 6 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của openwebwork/webwork2
Issue tương tự
-
nftables: "Display comment in rules list?" option has no effect, comments not shown in rules listĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Type: Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
inverse-inc/packetfence#9707 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Mailaddress phrase quotingĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
RotherOSS/otobo#6457 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
The reply-to for the pro user signup emails should be the email of the user instrad of the contact@ emailCó thể đã có người làm @sisodiaumang đã nhận hôm nay. Đang mở🏭 producer platform - spam
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
openfoodfacts/openfoodfacts-server#15447 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Harden argument handling in deploy-contract.shCó thể đã có người làm @Asta-wizard đã nhận 1 ngày trước. Đang mởStellar Wave
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Feyisara2108/stellargive#1377 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày