Code4HR / local-art-api

Public Art Installations in Norfolk, VA
https://localartapi-code4hr.rhcloud.com/
GNU Affero General Public License v3.0
4 stars 4 forks source link

Server Headers #10

Closed ghost closed 10 years ago

ghost commented 10 years ago

May need to include:

Access-Control-Allow-Origin: http://c4hrva.github.io

...in the response headers. Can't currently get the REST Adapter to talk with http://norfolkart.heroku.com.

Then again, debugging locally would mean I may not actually have the ability to test this functions properly until deployment.

EDIT: Or even

Access-Control-Allow-Origin: *

...for now until we can actually deploy.

qwo commented 10 years ago

its not enabled? let me check

ghost commented 10 years ago

Not sure, having issues pulling when using the DS.RESTAdapter. If I use it with the http://norfolkart.herokuapp.com host, it gives me problems trying to use any route that tries to load models from the store using that adapter.

qwo commented 10 years ago

http://client.cors-api.appspot.com/client#?client_method=GET&client_credentials=false&server_url=http%3A%2F%2Fnorfolkart.herokuapp.com%2Fexhibits&server_enable=true&server_status=200&server_credentials=false&server_tabs=remote

Cors is enabled its probably to do with the data isn't formatted correctly

ghost commented 10 years ago

Likely, okay.

What's that tool? :open_mouth:

qwo commented 10 years ago

something googled. but it shows cors are enabled for all domains