4,037 questions
0
votes
0
answers
40
views
JQuery JSONP Ajax call executing successfully but being reported as error
I am making a jsonp ajax call to a local service which responds with a valid javascript response. The ajax request looks like below:
$.ajax({
url: "http://localhost:12345",
...
1
vote
0
answers
30
views
chrome Extension manifes tV3 error - violates the following Content Security Policy directive
I am trying to send data to server in the jsonp method from the chrome extension I am developing.
However, it worked fine in manifest V2, but the following error occurs in manifestV3.
Please help me.
...
0
votes
2
answers
214
views
How can I do JSONP requests from Sveltekit?
We are running a Shopify store, and have come to a point where we need more flexibility content wise. My solution to this is to have content delivered via a custom CMS to a subdomain. One issue I have ...
1
vote
0
answers
121
views
How to use JSONP / JQuery in Scriptlab to call API and write data to excel
I am trying to use Scriptlab to call the public Census API and write the resulting json response to excel.
Specifically, it takes the [0][0] in the range, creates an API url from that, and it is ...
0
votes
1
answer
1k
views
How to fetch jsonp in Manifest v3
Refused to load the script 'https://dorar.net/dorar_api.json?skey=انما الاعمال بالنياتpage=1&callback=jsonp_callback_255' because it violates the following Content Security Policy directive: "...
0
votes
0
answers
15
views
CORB from Vanilla JS getJSONP to Google Apps Script [duplicate]
I have a simple set up in which I populate data on my HTML page by accessing data in a Google Sheet.
This works perfectly well in Chrome, but in Edge I get a CORB error in the console. I'm using ...
0
votes
0
answers
10
views
handle unnamed JSONP in xmlHttpRequest Javascript [duplicate]
I have simple XMLHttpRequest.
var xhr = new XMLHttpRequest();
xhr.open("GET", url, true);
xhr.onreadystatechange = function () {
if (this.readyState == 4 && this.status == ...
0
votes
2
answers
532
views
Getting parse error while fetching text file content in JQuery
I am trying to fetch data from text file which resides on server. I have access of that location and able to see content when I put URL in browser tab.
I am trying to make AJAX call and get file ...
0
votes
1
answer
1k
views
Adding headers to ajax request fails
This would seem to be very straightforward, but I cannot get additional HTTP headers added into a request that I'm attempting to make. I've watched via the browser developer tools as well as with ...
-2
votes
1
answer
86
views
i am fetching data from api jsonp. all the data are available to use but the logoUrl does not work
this is what the URL looks like in the object.
logoURL: "/rimg/provider-logos/airlines/v/FJ.png?crop=false&width=108&height=92&fallback=default1.png&_v=...
0
votes
0
answers
90
views
Kendo ui jsonp data binding
I'm struggling with the kendo ui transport property for schedules. The following snippet worked as expected:
$.ajax({
url: 'https://myurl',
dataType: 'jsonp',
jsonpCallback:...
0
votes
0
answers
667
views
Correctly use ajax to make a JSONP request - Error: Cross-Origin Read Blocking
Issue:
I'm trying to make a JSONP request using ajax, but I'm encountering the below error.
Cross-Origin Read Blocking (CORB) blocked cross-origin response https://nftrade.com/_next/data/...
-1
votes
1
answer
320
views
jsonp response gives error html along with padded json after upgrading to .Net framework 4.8
Earlier my WebApplication was working on .Net Framework 4.5.2. After upgrading to 4.8, the Application is intermittently giving a weird HTML error appended to the jsonp response. There is no error ...
1
vote
1
answer
897
views
Angular 12 Httpclient jsonp - how to pass custom callback parameter?
Angular 12 - Httpclient jsonp - how to pass custom callback parameter?
Here is the full app -> https://stackblitz.com/edit/angular-ivy-2zg5yt?file=src/app/geolocation.service.ts
geolocation-service....
-1
votes
2
answers
189
views
Display Data from fetch api
Hi i want to fetch data from avascan api and display it in html, but i am not able to do this. I have tried fetch api, json and ajax ways but none worked for me. Any suggestions? This is my html https:...
0
votes
1
answer
317
views
How to use HERE Geocoder Autocomplete API with Angular and Jsonp?
When I call the HERE Geocoder Autocomplete API endpoint :
https://autocomplete.geocoder.ls.hereapi.com/6.2/suggest.json
?apiKey={YOUR_API_KEY}
&query=Pariser+1+Berl
&beginHighlight=<b>
&...
8
votes
1
answer
2k
views
Webpack 5 (Webpack Encore): How to run multiple webpack instances on the same page and avoid any conflicts?
For a pretty large Web application I want to run multiple instances of Webpack (Encore) on the same page. When I put all the source code into a single Webpack configuration it all works. However when ...
2
votes
1
answer
2k
views
Any straight forward way to convert javax.json.JsonObject to jakarta.json.JsonObject?
When starting the new Jakarta (9) project, I need to handle old (legacy libraries and modules) using the "javax" JSON-P API. Usually we end with this error:
java: incompatible types: ...
0
votes
1
answer
303
views
Consuming google_services status page JSONP in Google Apps Script
I'm looking to get service status of all response code and get how many services are up and running fine like,
If 10 services are there 9 service are UP and one down.Result should be in form of
{
9/...
2
votes
2
answers
2k
views
How to do a JSONP request with Angular to a static file when you can't set the callback function name?
Hello fellow problem solvers! I'm hoping to learn something from you. I ran into a challenge that could probably teach me more about Angular, and I would appreciate any input anyone might have.
...
0
votes
1
answer
78
views
Why my JSONP Code doesn't save results into PDF file after converting from template in Google App Script
I'm trying to save my results into PDF file after google sheet calculation. Here's my google sheet file: Google sheet(img)
After someone submit my form J Column sum all answers and gets 39. Then I ...
0
votes
1
answer
304
views
jQuery sending undefined "_" parameter
I am trying to write a script that gets COVID-19 numbers from the Ontario Database, but I keep getting the following error:
"invalid value \"_\""
Upon further investigation, the ...
0
votes
1
answer
314
views
Bypass same-origin policy with JSONP and parse data
I have found the following JSON resource for global COVID infection data:
https://opendata.ecdc.europa.eu/covid19/casedistribution/json/
I have tried this simple callback function (And many variations)...
-1
votes
1
answer
211
views
Why is my Ajax Request Containing dataType: "jsonp" erroring? [duplicate]
I have the following Ajax call:
var baseurl = Office.context.mailbox.restUrl;
var getMessageUrl = baseurl + "/v2.0/me/messages/" + rest_id + "?$select=SingleValueExtendedProperties&$...
0
votes
0
answers
172
views
Javascript: Getting the IP of the visitor. I can't access the JSON elements
I'm trying to read JSON response with JS but I can't find what what I'm doing wrong. I'm trying to enbed JS in a plugin I use in WP, but for the moment I'm just trying to get the right information in ...