CORS

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Milind (CyberChimps Team) 4 months ago.

  • Author
    Posts
  • #262580

    joemahonpt
    Participant

    Hello,

    I am trying to add CORS to the header.php file on my wordpress site. I am currently using the theme Edu Pro. I don’t want to mess anything up so I though I would come here for confirmation first. My understanding is that all I would need to do is add this line:

    <? header(“Access-Control-Allow-Origin: *”); ?>

    I want to make sure I am adding it to the proper location. Without adding a the entire header here, does this look accurate or would you suggest adding the line elsewhere in the header?

    <?php

    <? header(“Access-Control-Allow-Origin: *”); ?>.

    /**
    * Header Template
    *
    * Please do not edit this file. This file is part of the Cyber Chimps Framework and all modifications
    * should be made in a child theme.
    *
    * @category CyberChimps Framework
    * @package Framework
    * @since 1.0
    * @author CyberChimps
    * @license http://www.opensource.org/licenses/gpl-license.php GPL v3.0 (or later)
    * @link http://www.cyberchimps.com/
    */
    ?>

    <!DOCTYPE html>
    <!–[if lt IE 7]>
    <html class=”ie ie6 lte9 lte8 lte7″ <?php language_attributes(); ?>>
    <![endif]–>
    <!–[if IE 7]>
    <html class=”ie ie7 lte9 lte8 lte7″ <?php language_attributes(); ?>>

  • #262605

    Hi,

    I think you have created an email ticket regarding this. I have replied your ticket.
    Please find the reply and lets continue the discussion over there.
    Thank you.

You must be logged in to reply to this topic.