archiloque / sinatra-swagger-exposer

Create Swagger endpoint for your Sinatra application
MIT License
15 stars 20 forks source link

Can't allow cross_origin only for swagger endpoint #7

Open astrieanna opened 8 years ago

astrieanna commented 8 years ago

I only want the swagger endpoint to allow cross-origins requests, but sinatra-cross_origin only has enable :cross_origin to enable it everywhere, or cross_origin inside a route definition to enable it locally. But the route definition is inside this gem.

How can it set it up this way?