Enabled Cross-Origin Resource Sharing (CORS) for Swagger routes
Added middleware to allow all origins to access the Swagger API documentation.
Updated SwaggerJson route for compatibility with CORS middleware
Adjusted the route definition for increased compatibility, as described in the yii-swaggerexpander documentation.
https://github.com/yiisoft/yii-swagger/pull/79