src-d / blog

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

Add CORS policy to staging #240

Closed vmarkovtsev closed 6 years ago

vmarkovtsev commented 6 years ago

There is no Access-Control-Allow-Origin header in the staging server response. If this is a bug and not a feature then it would be cool to add the * policy.

How about blog.sourced.tech btw?

dpordomingo commented 6 years ago

How did you discover that? Would you like to access blog content (or JSON feeds) via AJAX?

vmarkovtsev commented 6 years ago

@dpordomingo I want to use Tensorflow Projector which loads a JSON config and the data files by HTTP.

vmarkovtsev commented 6 years ago

An alternative is to host our own projector on blog.sourced.tech.

dpordomingo commented 6 years ago

this might help you https://github.com/src-d/blog/pull/243

dpordomingo commented 6 years ago

@vmarkovtsev It was deployed into Production within the new release v1.17.1 Feel free to reopen this issue if you suffer from cors again while fetching blog from Tensorflow Project