How to move webworkConfig out of inline JavaScript in templates/layouts/system.html.ep
I maintainer di solito rispondono entro 4 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 18/100
- Tipo di issue
- Refactoring
- Chiarezza
- Da chiarire
- Stato di attività
- Tranquilla
- Stack tecnologico
- javascript, perl
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Perl
- Stelle
- 164
- Fork
- 167
- Merge medio
- 6g 7h
- PR unite (30g)
- 27
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di openwebwork/webwork2
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
openwebwork/webwork2#3295 ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
openwebwork/webwork2#3290 ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
openwebwork/webwork2#2997 ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 56/100
openwebwork/webwork2#3276 ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
openwebwork/webwork2#3272 · 6 commenti ·
I maintainer di solito rispondono entro 4 giorni
Tutte le issue di openwebwork/webwork2
Issue simili
-
nftables: "Display comment in rules list?" option has no effect, comments not shown in rules listAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Type: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
inverse-inc/packetfence#9707 ·
I maintainer di solito rispondono entro 1 giorno
-
Mailaddress phrase quotingAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
RotherOSS/otobo#6457 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
The reply-to for the pro user signup emails should be the email of the user instrad of the contact@ emailForse già presa @sisodiaumang l’ha presa oggi. Aperta🏭 producer platform - spam
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
openfoodfacts/openfoodfacts-server#15447 ·
I maintainer di solito rispondono entro 1 giorno
-
Harden argument handling in deploy-contract.shForse già presa @Asta-wizard l’ha presa 1 giorno fa. ApertaStellar Wave
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Feyisara2108/stellargive#1377 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno