<!-- DO NOT EDIT THIS FILE; it is auto-generated from readme.txt -->
# JSON REST API Force SSL

![Banner](assets/banner-1544x500.png)
Force WP JSON REST API endpoints to always be served over HTTPS.

**Contributors:** [fjarrett](https://profiles.wordpress.org/fjarrett)  
**Tags:** [api](https://wordpress.org/plugins/tags/api), [json](https://wordpress.org/plugins/tags/json), [REST](https://wordpress.org/plugins/tags/REST), [rest-api](https://wordpress.org/plugins/tags/rest-api), [ssl](https://wordpress.org/plugins/tags/ssl), [https](https://wordpress.org/plugins/tags/https), [security](https://wordpress.org/plugins/tags/security)  
**Requires at least:** 3.9  
**Tested up to:** 4.2  
**Stable tag:** trunk (master)  
**License:** [GPLv2 or later](http://www.gnu.org/licenses/gpl-2.0.html)  

[![Build Status](https://travis-ci.org/fjarrett/json-rest-api-force-ssl.png?branch=master)](https://travis-ci.org/fjarrett/json-rest-api-force-ssl) 

## Description ##

**Did you find this plugin helpful? Please consider [leaving a 5-star review](https://wordpress.org/support/view/plugin-reviews/json-rest-api-force-ssl).**

**Note: This plugin requires the [JSON REST API (WP API)](https://wordpress.org/plugins/json-rest-api/) plugin.**

For site owners who want the WP API served over SSL always and forever.

All HTTP requests to the JSON REST API will be 301 redirected to their HTTPS equivalent.

If for some reason you don't want to use a plugin to do this, you can also just add this hook to your theme: https://gist.github.com/fjarrett/8cd04bd33e49bbd6e3b7

**Development of this plugin is done [on GitHub](https://github.com/fjarrett/json-rest-api-force-ssl). Pull requests welcome. Please see [issues reported](https://github.com/fjarrett/json-rest-api-force-ssl/issues) there before going to the plugin forum.**

## Changelog ##

### 0.1.1 - December 30, 2014 ###
* Ensure safe local redirects by using wp_safe_redirect() instead of wp_redirect()

Props [johnjamesjacoby](https://profiles.wordpress.org/johnjamesjacoby/)

### 0.1.0 - December 30, 2014 ###
* Initial release

Props [fjarrett](https://profiles.wordpress.org/fjarrett/)


