send_origin_headers


send_origin_headers ( No parameters )

Returns:
  • (string|false) Returns the origin URL if headers are sent. Returns false if headers are not sent.
Defined at:

Description

Sends Access-Control-Allow-Origin and related headers if the current request is from an allowed origin.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.

Related Functions

rest_send_cors_headers, login_header, do_signup_header, send_frame_options_header, send_nosniff_header

Top Google Results

User discussions

wpseek mobile