
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
graphql_playground-rails
Advanced tools
A blatant copy of GraphiQL::Rails with much less functionality but with GraphQL Playground instead.
Add this line to your application's Gemfile:
gem 'graphql_playground-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install graphql_playground-rails
Add the engine to routes.rb
:
# config/routes.rb
Rails.application.routes.draw do
# ...
if Rails.env.development?
mount GraphqlPlayground::Rails::Engine, at: "/graphql_playground", graphql_path: "/your/endpoint"
end
end
# config/initilizers/graphql_playground.rb
# All config options have a default that sould work out of the box
GraphqlPlayground::Rails.configure do |config|
config.headers = {
'X-Auth-Header' => (view_context) -> { "123" }
}
config.title = "Playground"
config.csrf = true
config.playground_version = "latest"
# Ideally the assets would be added to your projects `vendor/assets` directories
config.favicon = "/assets/playground.ico"
config.playground_js_url = "/assets/playground.js"
config.playground_css_url = "/assets/playground.css"
# see: https://github.com/prisma-labs/graphql-playground#settings
config.settings = {
"editor.polling.enable": false
}
end
Submit a PR.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that graphql_playground-rails demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.