Created
December 15, 2016 17:23
-
-
Save nuclearghost/dc0ec16df7d474fcd5b47e707c71c46b to your computer and use it in GitHub Desktop.
Simple Sinatra Server That Sets Cookies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
source "https://rubygems.org" | |
gem "sinatra" | |
gem "sinatra-contrib" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bundle install
ruby cookie_server.rb
Open
localhost:4567/set
in the browser to set the cookie and see it set upon redirection