Skip to content

I don't see Middleware in CURL request #29

Description

@stopachka

Hi everyone, boy am I happy to have found this gem!

I'm trying to fix the CORS issue on http://jobs.atlas-china.com . When I make a request -->
'''
curl -i http://jobs.atlas-china.com/assets/bootstrap/glyphicons-halflings-regular-fcc658a3dec1be1cb0a9bb81f4c7c6de.woff
HTTP/1.1 200 OK
Accept-Ranges: bytes
Cache-Control: max-age=315360000
Cache-Control: public
Content-Type: font/x-woff
Date: Mon, 26 May 2014 21:05:59 GMT
Expires: Thu, 31 Dec 2037 23:55:55 GMT
Last-Modified: Wed, 16 Apr 2014 06:51:18 GMT
Server: nginx/1.4.7
Content-Length: 23320
Connection: keep-alive
'''

I don't see the allow origin. Am I implementing incorrectly?

I tried putting the following in both my application.rb and production.rb

config.font_assets.origin = ENV['APP_URL']

You can take a look at the app code on

www.github.com/stopachka/a.app

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions