niccokunzmann / first_timer_scraper

Find pull-requests and issues of first time contributors
http://firsttimers.quelltext.eu
GNU Affero General Public License v3.0
9 stars 15 forks source link

added setting the header property Access-Control-Allow-Origin: * #27

Closed robly78746 closed 6 years ago

robly78746 commented 6 years ago

I wonder if there is a better way to set this header for every JSON response. This should fix issue #11

niccokunzmann commented 6 years ago

Thanks!

niccokunzmann commented 6 years ago

I wonder if there is a better way to set this header for every JSON response.

There are more headers we can set: https://github.com/niccokunzmann/dockerhub-build-status-image/blob/master/python-server/dockerhub_status_image_api.py#L92

Also, this can be put into a function which can be called at these places.

niccokunzmann commented 6 years ago

So, this closes the issue #11. :)

niccokunzmann commented 6 years ago

I tested it and it is deployed: http://firsttimers.quelltext.eu/repository/niccokunzmann/first_timer_scraper.json