send_origin_headers

Advertisement

Summery Summery

Send Access-Control-Allow-Origin and related headers if the current request is from an allowed origin.

Syntax Syntax

send_origin_headers()

Description Description

If the request is an OPTIONS request, the script exits with either access control headers sent, or a 403 response if the origin is not allowed. For other request methods, you will receive a return value.

Return Return

(string|false) Returns the origin URL if headers are sent. Returns false if headers are not sent.

Source Source

File: wp-includes/http.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
3.4.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.