Hello. I'm using the most promiscuous settings possible for rack-cors:
config.middleware.insert_before 0, Rack::Cors do
allow do
origins '*'
resource '*', :headers => :any, :methods => [:get, :post, :options]
end
end
And still not getting the Access-Control-Allow-Origin field when making a request for a font resource from my stylesheet. I thought the proxy passthrough would just return all headers set by the server and I would not have to play with nginx configuration but I've had to add the following to my nginx config. When I make a request directly
It's almost like the statically served asset weren't hitting the middleware, but I thought they should. Any other information I can provide please let me know. This one kind of stumped me for longer than I wished it would have
Hello. I'm using the most promiscuous settings possible for rack-cors:
And still not getting the Access-Control-Allow-Origin field when making a request for a font resource from my stylesheet. I thought the proxy passthrough would just return all headers set by the server and I would not have to play with nginx configuration but I've had to add the following to my nginx config. When I make a request directly
This is the CURL command I was running and not seeing the header.
whereas when hitting the /login url the header was present.
(note the domains in
...
were the same)It's almost like the statically served asset weren't hitting the middleware, but I thought they should. Any other information I can provide please let me know. This one kind of stumped me for longer than I wished it would have