mysociety / popit-api

DEPRECATED - Development on PopIt has stopped and it is no longer being maintained
https://goo.gl/Vvej4Q
Other
17 stars 3 forks source link

add cors middleware and apply to API GET requests #105

Closed struan closed 9 years ago

struan commented 9 years ago

by default adds Access-Control-Allow-Origin: * to all GET requests which means API calls work in ajax calls etc

Fixes mysociety/popit#691

chrismytton commented 9 years ago

Looks good! :+1: