martini-contrib / render

Martini middleware/handler for easily rendering serialized JSON, XML, and HTML template responses.
MIT License
245 stars 57 forks source link

How to change content header? #31

Open hsdk123 opened 10 years ago

hsdk123 commented 10 years ago

I'm trying to set the 'Access-Control-Allow-Origin header - how should I go about doing this with Render?

hsdk123 commented 10 years ago

I managed to get it working through Render.Header after finding it while going through the repo code - it would be nice if an example could be added to the readme tutorial though.