src-d / blog

source{d} blog
https://blog.sourced.tech/
GNU General Public License v3.0
27 stars 41 forks source link

Allow cors for projector.tensorflow.org origin #243

Closed dpordomingo closed 6 years ago

dpordomingo commented 6 years ago

fix #240

I added

    cors / {
        origin            http://projector.tensorflow.org
        methods           GET
    }

Let me know @vmarkovtsev if it suits you. If it is not enough, could you please provide one of the following:

It's now deployed into Staging, so you can test it; if you now run:

$ curl -vvv --head -X OPTIONS -H "Origin: http://projector.tensorflow.org" https://blog-staging.srcd.run

you'll obtain:

> OPTIONS / HTTP/1.1
> Host: blog-staging.srcd.run
> User-Agent: curl/7.47.0
> Accept: */*
> Origin: http://projector.tensorflow.org
> 
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Access-Control-Allow-Origin: http://projector.tensorflow.org
...
vmarkovtsev commented 6 years ago

Yep I checked and it works @dpordomingo, thanks for a quick fix.