We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using <st:bind var="myproxy" value="${it}"/>result in the following code getting injected in the rendered page:
<st:bind var="myproxy" value="${it}"/>
<script> myproxy = makeStaplerProxy(...) </script>
This is a problem when Content Security Policy should be enabled. Maybe one can just create some json data
<script class="stapler-javascript-proxy" type="application/json"> {"myproxy": {"url": "/jenkins/$stapler/bound/dcabcdd4-f80d-4b46-b5f7-db0ce94ab8ff", "crumb": "abc234d97ed766f5...", "methods": ["myfirstmethod", "mysecondmethod"] } } </script>
The bind.js could then find the data and do the assignment to the variable.
No response
The text was updated successfully, but these errors were encountered:
There's a PR here for this #385 from @daniel-beck
Sorry, something went wrong.
Merged and included in Stapler release 1839.ved17667b_a_eb_5
Depends on jenkinsci/jenkins#6865 to work though. Reviews still welcome!
Successfully merging a pull request may close this issue.
What feature do you want to see added?
using
<st:bind var="myproxy" value="${it}"/>
result in the following code getting injected in the rendered page:This is a problem when Content Security Policy should be enabled.
Maybe one can just create some json data
The bind.js could then find the data and do the assignment to the variable.
Upstream changes
No response
The text was updated successfully, but these errors were encountered: