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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -