javascript - How to test with cross-origin data in node-webkit? -


i've been testing of cross-origin data through node success. however, ran situation node couldn't solve request data.

i'm using getimagedata() function, throws cross-origin problem. on other cross-origin problems, node can handle requests, function seems give trouble.

also, if package node-webkit , run stand-alone, works great. i'm sure there explanation, cannot find it. why node-webkit work, running node.js server not?

without pouring code on page, let me try explain i'm doing. have axis camera i'm getting data from. it's motion jpeg, , stored in img tag i've got id'd. data coming http://ip, etc, etc.

i think problem getimagedata() function requesting img tag id rather somewhere external, in-turn throw cross-origin flag.

am correct? how can solve this?

also, know of way test node-webkit apps without packaging them? essentially, node-webkit simulator?

i have solved problem adding package.json:

"chromium-args": "--disable-web-security", 

try it!


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -