Questions tagged [crossdomain-request.js]

19 questions
5
votes
0 answers

"GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)"

I am trying to run a lambda function using request library. I tried to look at some other same issues, but couldnt find exactly the one i needed. Following is my code: var req = require('request'); var headers = { 'X-AUTH-TOKEN': 'xxxx', …
Omkar
  • 2,274
  • 6
  • 21
  • 34
3
votes
1 answer

Cheerio -Web Scraping - Not able to scrape innertext of a div

I am using Cheerio and request for web scraping. Below is my code on running which it doesn't give any error but also it doesn't gives me the innerText of div with that class name. I am a beginner in this technology. So not able to figure out where…
2
votes
1 answer

POST an image in JSON using Node.js

I need to post a file in Node.js using Request module in a JSON in such a pattern: { id: , title:, file: file } The id and title are given, however I don' t know how to fill in the…
1
vote
0 answers

A workaround for third party cookies on Safari browsers

I'm trying to get JSON data from an API I created on domainA.com to show at domainB.com - I'm using third party cookies and it's working fine on Chrome but not on Safari due to strict restrictions. I've tried using an iframe and it still doesn't…
1
vote
1 answer

How to call Bamboo HR API call from SharePoint Online

I would like to get data from Bamboo HR and display it in SharePoint Online. Bamboo HR supports API with basic authentication to call and get data from Bamboo HR. When I tried to get data in browser, it's working fine however when I use ajax call…
1
vote
1 answer

How to test CORS with Mule

I am using Anypoint Studio 6.1 and Mule 3.8.1 and have a mule RESTful application that I want to stop CORS requests from being accepted by the application. The application has been setup to do this but what is the best way to prove this is…
user3165854
  • 1,505
  • 8
  • 48
  • 100
1
vote
1 answer

Yii2 AccessControl for action to be accessed by certain website

I have a backend project on my ssl server, like ssl.mybackend.com, with following: class FormController extends Controller { public function behaviors() { return [ 'access' => [ 'class' =>…
Gyuzal
  • 1,581
  • 10
  • 52
  • 99
1
vote
1 answer

Single Cross Domain AJAX Request needed

Trying to implement sending sms features in my ecommerce store. I use service called esteria.lv and they provided me with API link that looks like this: http://api1.esteria.lv/send?api-key=api_key&sender=example.com&number=11223344&text=message If…
maarcs
  • 115
  • 10
1
vote
0 answers

Chrome mobile browser cross domain request Issue

I am using pure JavaScript to make cross domain post request. Its working for all the desktop browser including Chrome. However request is getting failed with statusCode: 0 in the chrome mobile browser. function MakeAJAXRequest(jsonData){ var…
1
vote
0 answers

ajax request 'Access Control Allow Origin'

I am facing a issue of cross origins. I have googled and found some solutions but they are not working in this case. I wonder why. I am hosting my application in apache tomcat server. And On the application side I am using XMLHttpRequest for request…
1
vote
2 answers

What if Cross Domain Ajax request meets the content of target div is generated a few seconds later than document loaded

I need to retrieve the content of a generated div on an external website page. I have been searching for quite a while and haven't got any luck. I have been able to retrieve all static content from that page(cross domain). But the content of that…
Franva
  • 6,565
  • 23
  • 79
  • 144
0
votes
0 answers

iframe cross-domain access with JavaScript

I have a simple HTML page with an iframe. I set its src to another HTML file and I can change the style of any chosen element at will using code like this (a basic example): function elementStyle() { var iFrame = document.getElementById(…
0
votes
1 answer

How to make Cross Domain Request to an API from Javascript Client when I don't have access to modify the other domain API?

I have a scenario where I need to fetch JSON response data from an API in a different domain. Lets say the requesting domain is ClientDomain and the API domain in APIDomain. Now I know that this can be achieved using Access-Control-Allow-Origin…
0
votes
2 answers

oAuth code exchange for secret token

I'm making an app that is supposed to use oAuth to authenticate players from the Blizzard servers, I want to access their character info.. and I can't figure out how to ask for the secret_token. I guess I'm doing my post request wrong below is the…
Yandri
  • 41
  • 4
0
votes
1 answer

Passing data between windows across domain in AngularJS

I am very new to AngularJS and working on an application where I have to open a new window (from another domain) and pass some data to the new window across domain. Can somebody provide me some working sample in angularJS to refer and complete the…
1
2