panmind / ssl_helper Goto Github PK
View Code? Open in Web Editor NEWRails' ssl_requirement on steroids: includes filters and SSL-aware named route helpers
Rails' ssl_requirement on steroids: includes filters and SSL-aware named route helpers
There's an issue with redirect that happen due to either require_ssl or refuse_ssl when the request is coming is not a GET one.
All params are given to redirect_to, this results in all fields being put in querystring on the destination page. This is obviously a security issue and needs to be fixed. A form should not know in advance if the destination resource accepts or refuses SSL.
ssl_requirement makes me include SSLRequirment in the application controller.
I thought this was similar, but no such luck with that code in the app controller.
Am I missing something, how does this work? Does just including the gem make it work (i.e., redirect from http to https for certain controller actions? if so how?
any guidance is appreciated.
Hey,
ok, in the Server configuration section, you mention adding the X-PROTO line in a location...
but you have that location as / or root, will that work throughout the whole site? and subdomains, and everything?
my nginx fu is weak, but I too am using it. I've not had much luck on google so thought I'd ask.
Once i get this up, i may add to your README or put up an article in your wiki for guys who need more hand holding like me.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.