Skip to content

Commit

Permalink
Add nonces to script tags
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-adam committed Feb 16, 2024
1 parent 6ede03e commit b471a67
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resources/views/importPackages.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div xmlns:labkey="http://www.w3.org/1999/xhtml">
</div>

<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">

var selectedFileNames = LABKEY.ActionURL.getParameterArray("file");
var taskId = LABKEY.ActionURL.getParameter("taskId");
Expand Down
2 changes: 1 addition & 1 deletion resources/views/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<div class="snd-test-runner-frame"></div>
<div class="snd-test-data-frame"></div>

<script type="text/javascript">
<script type="text/javascript" nonce="<%=scriptNonce%>">


(function($) {
Expand Down
2 changes: 1 addition & 1 deletion src/org/labkey/snd/security/view/categorySecurity.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
}
</style>

<script type="text/javascript">
<script type="text/javascript" nonce="<%=getScriptNonce()%>">
function setRole(group, category, role) {
document.getElementById(group + '_' + category).value = role;
Expand Down
2 changes: 1 addition & 1 deletion webapp/WEB-INF/snd/sndContext.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<list>
<bean class="org.labkey.api.pipeline.file.FileAnalysisTaskPipelineSettings">
<constructor-arg value="sndPipeline"/>
<property name="analyzeURL" value="/snd/importPackages.view?"/>
<property name="analyzeURL" value="/snd-importPackages.view"/>
<property name="description" value="SND document import"/>
<property name="protocolObjectId" value="snd.documentImport"/>
<property name="protocolName" value="SND document import"/>
Expand Down

0 comments on commit b471a67

Please sign in to comment.