Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
51 views

In my very simple Sinatra app I have a home page on which there is form which needs to be submitted through AJAX and the HAML template needs to execute some JS code. And I need to set the Content-...
Jignesh Gohel's user avatar
0 votes
1 answer
120 views

I’m running an inline C# script in an Azure Logic Apps workflows to get the blob details using DefaultAzureCredential(). I have given 'Storage Blob Data Contributor' to Azure Logic App in Storage ...
Bharti Tijare's user avatar
1 vote
0 answers
44 views

I am trying to copy an image into browser's(specifically chrome) clipboard for later paste via ctrl + v or cmd + v. I tried 2 different way to implement that feature but failed. And note that this is ...
MD Shakib Ahmed's user avatar
1 vote
1 answer
399 views

Preface: Hashes belonging to all known or identifiable Javascripts have been included in the CSP Header. When I click on the custom Facebook share button, I get the following error: Refused to ...
Goemon Code's user avatar
0 votes
0 answers
277 views

I'm trying to add a page to my website that allows users to view all of my social media feeds in one place. All three social media sites that I'm using (Facebook, Instagram and Pinterest) offer ...
jrfii's user avatar
  • 41
5 votes
0 answers
3k views

jQuery 3.7.0. has a line of code that violates CSP policies for inline scripting that has been persisting since version 3.1.1, seeing as it is clearly not getting fixed anytime soon I was wondering if ...
JSG's user avatar
  • 51
2 votes
2 answers
138 views

So I've created a very basic practice page, where clicking each button will bring up a picture of the country. Below the picture is some text. My question is, how do you go about making the text below ...
Kotor2's user avatar
  • 41
1 vote
2 answers
3k views

Hello I think the problem I am facing might be a beginner doubt, but here it is: I have a stage yaml which is called by my main yaml. Stage yaml has a parameter which I want to use in inline script. ...
Lucky's user avatar
  • 295
0 votes
2 answers
422 views

I am trying to execute Get-AzSqlServer from AzureCli@2 yaml pipeline and it is throwing an error: The term 'Get-AzSqlServer ' is not recognized as the name of a cmdlet Here is my task - task: AzureCli@...
Lucky's user avatar
  • 295
0 votes
1 answer
949 views

I'm working on getting a bunch of legacy inline scripts cleaned up. My question is: How do I call a function from an inline script that is compiled in WebPack. After trying a bunch of different ...
Ryan Dorn's user avatar
  • 837
0 votes
0 answers
26 views

I'm building a Chrome extension using Manifest V3, and I'm trying to execute an inline script using chrome.scripting.executeScript(). However, I keep getting the error message "Refused to execute ...
Ercan Acar's user avatar
0 votes
2 answers
2k views

I am trying to get the TailwindCSS IntelliSense working inside an inline script. I am using handlebars in a simple One-Pager, however the autocompletion doesn't work in side the script tag. <div id=...
Nikolai Lehbrink's user avatar
0 votes
1 answer
357 views

I'm thinking this is the best place to post this as you guys are the cream of the crop. I'm very new to azure Devops and I am playing around ARM templates and have created a relatively simple ...
Joshua Martin's user avatar
1 vote
0 answers
1k views

I used the unsafe-hashes for our Content-Security-Policy to override the errors for our html inline attached events, so in Chrome it works fine and scripts like this are working properly: <a id=&...
silvio rossi's user avatar
1 vote
1 answer
219 views

In my experience, the header below, when enabled, blocks inline script on the page. Content-Security-Policy: default-src 'self'. Why is inline code not considered "self"? I know I can use ...
Dan's user avatar
  • 2,354
0 votes
0 answers
966 views

I'm using Chrome Extension ReactJS which I'd like to insert this in popup.html: <script src="https://unpkg.com/[email protected]/build/index.js"></script> <script> ...
user16691768's user avatar
5 votes
1 answer
13k views

I have to add CSP header to a site. Issue is that this is a legacy code and there are lots of inline scripts and styles in the HTML. I cannot use 'unsafe-inline' as the aim is to actually make the ...
Hrishikesh Bawane's user avatar
0 votes
1 answer
278 views

So I'm working on a django project and we're having English translated to Czech (not important). I can do fine with regular tags being translated with {% trans 'sample text' %} However, I have a ...
Jasasul's user avatar
0 votes
0 answers
317 views

I'm trying to execute a powershell script XYZ.ps from an Powershell task which is in a TFS Build Definition. The Build Definition is executed with UserA and this UserA does not have permission to Read/...
Anu7's user avatar
  • 77
-2 votes
1 answer
11k views

i want to disable the CSP - app.use(helmet.contentSecurityPolicy()) because it blocks any inline-scripts. the hash and nonce solutions (https://content-security-policy.com/examples/allow-inline-script/...
ינון רחמים's user avatar
0 votes
1 answer
332 views

How can i combine multiple JavaScript files into one and make it inline script. Currently I can combine into one file using gulp usemin but i can't do it as inline script . I want to solve render ...
user7393570's user avatar
5 votes
1 answer
3k views

I am developing a Flask App and it uses Flask-Talisman to incorporate a CSP. I wanted to create an inline script in one of my templates and instead of adding 'unsafe-inline' to the 'script-src' array ...
nosh's user avatar
  • 692
3 votes
2 answers
2k views

I want to defer non-critical css using the following mechanism: <link rel="preload" href="styles.css" as="style" onload="this.onload=null;this.rel='stylesheet'"> I have the following Content ...
Stefan Benz's user avatar
0 votes
0 answers
656 views

Consider this basic function in /js/foo.mjs: export function foo( ) { console.log('Hello, Modularity!'); }; How to import foo function inside an HTML document, so it can be used inline? <html&...
Monsieur Pierre Doune's user avatar
8 votes
3 answers
2k views

I'm trying to implement stripe payment system in Django. For adding card payments, I followed the guide in this link. After adding HTML markup in Django template and CSS and JS code as separate static ...
Elgin Cahangirov's user avatar
0 votes
1 answer
1k views

I have index.html where I want to load hotjar tracking code (only inline script), but it depends on the env variable. I tried to use webpack DefinePlugin new webpack.DefinePlugin({ 'process....
Oloji's user avatar
  • 175
0 votes
2 answers
262 views

I have an application that cannot use external scripts references. I've always being able to use any kind of script putting it inline, but with go.js it has not being possible. Is there any particular ...
calebmiranda's user avatar
1 vote
4 answers
235 views

We write PHP code inside the HTML code via <?php ... ?> tags. So normally it would not make sense to write HTML code inside PHP code that is already inside HTML code, if you can just exit the ...
s3c's user avatar
  • 1,923
0 votes
0 answers
448 views

I am trying to inject html snippet in chrome extension (popup.html). The most convenient way seems to me is <script> $(function(){ $('body').load("login.html"); }); </script&...
senty's user avatar
  • 12.9k
1 vote
1 answer
467 views

I want to add inline Javascript on footer of my wordpress site. I know we can add inline Javascript using wp_add_inline_script. From my understanding from Codex tutorial, we have to register and ...
Null's user avatar
  • 69
0 votes
1 answer
891 views

My Vagrantfile is $script = <<SCRIPT cd /opt/IBM/WebSphere/AppServer/ sudo sh startServer.sh server1 SCRIPT Vagrant.configure(2) do |config| config.vm.box = "bolbase" config.vm.network "...
user2439278's user avatar
  • 1,264
1 vote
2 answers
5k views

How can we add an item to an arraylist while using foreach -parallel loop in powershell workflows? workflow foreachpsptest { param([string[]]$list) $newList = [System.Collections.ArrayList]@() ...
cansin aldanmaz's user avatar
0 votes
1 answer
2k views

I am working with mitmproxy, and I am still fairly new to it (been using it for a couple of days). Right now I am attempting to intercept get requests, and replace all instances of a string, for ...
user1576752's user avatar
4 votes
1 answer
16k views

A POST request sent to a certain URL (http://test.com) looks like this: { "messageType": "OK", "city": { "Name": "Paris", &...
Richard3's user avatar
  • 149
1 vote
0 answers
1k views

Say I have a script called makeFields.js which includes the method function makeDateControls() { document.write(/* ... */); } In my HTML, I link to that script in the head, like so: <head&...
Chris Middleton's user avatar
1 vote
3 answers
1k views

I have the code as shown below. Have removed unwanted code from this, just wrote what was needed. When I call my toggleFunc from inline script in body, it shown in console that this function is not ...
whyAto8's user avatar
  • 1,670
8 votes
1 answer
4k views

I'm reading Chrome extension document "Content Security Policy (CSP)". It says: Inline JavaScript, as well as dangerous string-to-JavaScript methods like eval, will not be executed. This ...
weilou's user avatar
  • 4,678
1 vote
10 answers
7k views

How should I quote this: <tr onclick="$.colorbox({href:'information1.html'});"> When put in an echo " "; ? I have tried this: echo "<tr onclick='$.colorbox({href:'...
pufAmuf's user avatar
  • 7,851
1 vote
1 answer
2k views

simple question: How do I execute inline javascript in a HTML page snippet loaded with dojo.xhrGet()? Being new to dojo I'm a bit confused this doesn't just work like in JQuery ... Can anyone help?? ...
thomas's user avatar
  • 2,328
1 vote
3 answers
413 views

I just read in a best practices article for jquery and ajax that I should avoid defining behavior for elements on the page with inline script. That does make sense since it makes the code very ...
vikmalhotra's user avatar
  • 10.1k
16 votes
0 answers
5k views

I am wondering what if one script tag has both "src" and inline script. I tried below code. <script src="http://yui.yahooapis.com/2.8.1/build/yahoo/yahoo-min.js" type="text/javascript" charset="...
Morgan Cheng's user avatar
  • 76.4k
1 vote
1 answer
505 views

After seeing many questions about how jQuery.load() handles tags in the content to be loaded, I see that jQuery strips out inline tags. But, I'd like to use Kontactr for the contact page in my site, ...
JustinP8's user avatar
  • 1,353
0 votes
1 answer
68 views

I was trying to do this : <asp:GridView ID="gvBugList" runat="server" AutoGenerateColumns="False" ShowHeader="False" DataSourceID="linqDSBugList" Width="100%" AllowPaging="true" PageSize="...
Tarik's user avatar
  • 82.2k
2 votes
2 answers
3k views

I want to learn advanced and basic things about ASP.NET inline scripting like <img src="<%= Page.ResolveUrl("~")%>Images/Logo.gif"/> or <asp:Label ID="lblDesc" runat="server" Text='&...
Tarik's user avatar
  • 82.2k