Forums

web2py : set header in wsgi file

Hello,

I would like to make ajax request within my static directories. How can I set header to 'Access-Control-Allow-Origin' ?

Regards

I think your best bet is probably not to use static directories. Instead, write a view that sets the header and streams the content out.

Thanks Glenn, that is a good advise

Regards