#34299 closed enhancement (fixed)
Force the REST API endpoint to HTTPS when appropriate
| Reported by: | johnbillion | Owned by: | johnbillion |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | REST API | Version: | 4.4 |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
Description
Given a site which runs over http but the admin area runs over https (for example via FORCE_SSL_ADMIN), the REST API endpoint will point to an http URL in the admin area. This makes the endpoint inaccessible to clients due to cross-protocol restrictions.
An example of where this is visible is the REST API Console plugin.
If the host name of the REST API endpoint matches the host name of the current request, then the REST API endpoint URL can be forced to https.
Previous discussion:
Attachments (1)
Change History (10)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Related issue and discussion: https://github.com/WP-API/WP-API/issues/259