anyaudio / anyaudio-server

:musical_note: Simple server to search youtube and give direct audio download and stream links
91 stars 19 forks source link

Allow cross-origin requests on API calls #147

Closed singhpratyush closed 6 years ago

singhpratyush commented 7 years ago

As of now, cross-origin requests are not allowed in setup. Make that happen.

Hint:

$ pip install flask-cors
from flask_cors import cross_origin

@cross_origin()
def search():
    ...
singhpratyush commented 6 years ago

Fixed in 17ade8b610ee9809c2fd481a8f0719e64347da23.