Open zacharybuck opened 8 years ago
I think, at present there is no way to set some configuration parameter to make CORS work with OmniHub. Underneath, it uses Spray HTTP, which can only support CORS if the header is added on every Response. This at the moment is not configurable.
However, you may try using a reverse proxy like Nginx ( enabled with CORS ), to make it work. Essentially, put a man in the middle that allows CORS.
http://www.html5rocks.com/en/tutorials/cors/ http://enable-cors.org/server_nginx.html If you are feeling adventurous, you can look at the following code, and see if you can fix this:
Thanks for the response! I'll use nginx proxy on production. But for those who are on development I would suggest to run chrome browser like this: google-chrome --disable-web-security (ubuntu 14)
Zachary Buck on Salesforce commented: This is a test. Test test test,
hahaha that's your problem, not mine.
Boop!
Zachary Buck on Salesforce commented: boop
beep
Zachary Buck on Salesforce commented: beep boop
Zachary Buck (@zacharybuck-cgtest1@marblemethodsoftware.com) on Salesforce commented: boop beep boop
zacharybuck-cgtest1@marblemethodsoftware.com(Zachary Buck) on Salesforce commented: @kevinleecarr testing references
Zachary Buck (zacharybuck-cgtest1@marblemethodsoftware.com) on Salesforce commented: This should be formatted better.
Zachary Buck (zacharybuck-cgtest1@marblemethodsoftware.com) on Salesforce commented:
boop? Beep!
beep? boop!
Zachary Buck (zacharybuck-cgtest1@marblemethodsoftware.com) on Salesforce commented:
Much comment. (logs on!)
COMMENT
blarp
boooooooop?
I'd like to see this as a comment
Zachary Buck (zacharybuck-cgtest1@marblemethodsoftware.com) on Salesforce commented:
Yes, I expect you would.
Zachary Buck (zacharybuck-cgtest1@marblemethodsoftware.com) on Salesforce commented:
this is to test if comments are updated
Always get CORS error (Reason: CORS header 'Access-Control-Allow-Origin' missing)) when trying to get result from template engine http://localhost:8000/queries.json on client side Where I can set it? Can't find anything in docs. Thanks!