Skip to content

Comments

Polling a JSON-value via Ajax (jQuery) from another website (apache) produces error "Origin http://localhost is not a...#11

Open
unSinn wants to merge 1 commit intojulioterra:masterfrom
unSinn:patch-1
Open

Polling a JSON-value via Ajax (jQuery) from another website (apache) produces error "Origin http://localhost is not a...#11
unSinn wants to merge 1 commit intojulioterra:masterfrom
unSinn:patch-1

Conversation

@unSinn
Copy link

@unSinn unSinn commented Aug 30, 2013

...llowed by Access-Control-Allow-Origin.

Complete Error from Chromium:
"XMLHttpRequest cannot load http://192.168.2.200/json/output_light. Origin http://localhost is not allowed by Access-Control-Allow-Origin."

I don't know if this is the proper fix for this but it's working for me.

thanks for a great Arduino library

…t allowed by Access-Control-Allow-Origin."

Complete Error from Chromium:
"XMLHttpRequest cannot load http://192.168.2.200/json/output_light. Origin http://aitec is not allowed by Access-Control-Allow-Origin."

I don't know if this is the proper fix for this but it's working for me.

thanks for a great Arduino library
@juanmav
Copy link

juanmav commented Sep 3, 2014

+1 to merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants