We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
it would be handy to enable imgcollect (or other angular client app) to be able to make cross-origin requests to JackSON.
I found the following code, per this post, http://benjaminhorn.io/code/setting-cors-cross-origin-resource-sharing-on-apache-with-correct-response-headers-allowing-everything-through/, to do the trick:
`set :allow_methods, [:get, :post, :options]
options "*" do response.headers["Allow"] = "HEAD,GET,PUT,DELETE,OPTIONS"
response.headers["Access-Control-Allow-Headers"] = "X-Requested-With, X-HTTP-Method-Override, Content-Type, Cache-Control, Accept"
halt 200 end `
The text was updated successfully, but these errors were encountered:
No branches or pull requests
it would be handy to enable imgcollect (or other angular client app) to be able to make cross-origin requests to JackSON.
I found the following code, per this post, http://benjaminhorn.io/code/setting-cors-cross-origin-resource-sharing-on-apache-with-correct-response-headers-allowing-everything-through/, to do the trick:
`set :allow_methods, [:get, :post, :options]
options "*" do
response.headers["Allow"] = "HEAD,GET,PUT,DELETE,OPTIONS"
Needed for AngularJS
response.headers["Access-Control-Allow-Headers"] = "X-Requested-With, X-HTTP-Method-Override, Content-Type, Cache-Control, Accept"
halt 200
end
`
The text was updated successfully, but these errors were encountered: