Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add security headers to login/register pages #10

Open
jonathanstegall opened this issue Feb 3, 2020 · 1 comment
Open

Add security headers to login/register pages #10

jonathanstegall opened this issue Feb 3, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@jonathanstegall
Copy link
Member

WordPress Core has this function:

/**
 * Send a HTTP header to limit rendering of pages to same origin iframes.
 *
 * @since 3.1.3
 *
 * @see https://developer.mozilla.org/en/the_x-frame-options_response_header
 */
function send_frame_options_header() {
	header( 'X-Frame-Options: SAMEORIGIN' );
}

We should use this on all pages generated by this plugin.

@jonathanstegall
Copy link
Member Author

This plugin is currently run by using shortcodes that get loaded on pages. That might have to change, maybe to use the cortex routes instead. It'd be worth it though, I think.

@jonathanstegall jonathanstegall added the enhancement New feature or request label Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant