How to move webworkConfig out of inline JavaScript in templates/layouts/system.html.ep
Los mantenedores suelen responder en 4 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 18/100
- Tipo de issue
- Refactorización
- Claridad
- Necesita aclaración
- Estado de actividad
- Tranquilo
- Stack tecnológico
- javascript, perl
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Perl
- Estrellas
- 164
- Forks
- 167
- Merge medio
- 6 d 7 h
- PR fusionados (30 d)
- 27
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de openwebwork/webwork2
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
openwebwork/webwork2#3295 ·
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
openwebwork/webwork2#3290 ·
Los mantenedores suelen responder en 4 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
openwebwork/webwork2#2997 ·
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 56/100
openwebwork/webwork2#3276 ·
Los mantenedores suelen responder en 4 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
openwebwork/webwork2#3272 · 6 comentarios ·
Los mantenedores suelen responder en 4 días
Todos los issues de openwebwork/webwork2
Issues similares
-
nftables: "Display comment in rules list?" option has no effect, comments not shown in rules listAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Type: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
inverse-inc/packetfence#9707 ·
Los mantenedores suelen responder en 1 día
-
Mailaddress phrase quotingAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
RotherOSS/otobo#6457 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
The reply-to for the pro user signup emails should be the email of the user instrad of the contact@ emailPosiblemente ocupada @sisodiaumang la tomó hoy. Abierto🏭 producer platform - spam
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
openfoodfacts/openfoodfacts-server#15447 ·
Los mantenedores suelen responder en 1 día
-
Harden argument handling in deploy-contract.shPosiblemente ocupada @Asta-wizard la tomó hace 1 día. AbiertoStellar Wave
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Feyisara2108/stellargive#1377 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día