# angularjs_json_middleware **Repository Path**: rubygems/angularjs_json_middleware ## Basic Information - **Project Name**: angularjs_json_middleware - **Description**: No description available - **Primary Language**: Ruby - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-10-14 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### angularjs_json_middleware: Rack middleware for AngularJS JSON vulnerability protection. Prepend AngularJS JSON vulnerability protection string \")]}',\\n\" to all JSON responses. See [https://docs.angularjs.org/api/ng/service/$http](https://docs.angularjs.org/api/ng/service/$http). ---- #### Requirements Rack #### Installation ##### Gemfile Add to your Gemfile: ```ruby gem 'angularjs_json_middleware' ``` Or lock it to the current backwards compatible version: ```ruby gem 'angularjs_json_middleware', '~> 0.0.1' ``` ##### Config Add the middleware to the stack. For general use add it to your `config.ru`. ```ruby use AngularjsJsonMiddleware ``` For rails add it to `config/application.rb`. ```ruby class Application < Rails::Application ... config.middleware.use AngularjsJsonMiddleware ... end ``` #### License The MIT License (MIT)