You are viewing an old revision of this post, from February 15, 2016 @ 16:21:37. See below for differences between this version and the current revision.

No ‘Access-Control-Allow-Origin’ header is present on the requested resource

This topic will show you how to fix No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

No ‘Access-Control-Allow-Origin’ header is present on the requested resource

This happens if you are attempting cross domain request.That is you are sending request from one domain to another domain. Normal browsers doesn’t support cross domain request for security reasons. You can fix this by passing ‘Access-Control-Allow-Origin’ header .

Open the file to which you are sending the ajax request and place this header in the beginning of file.

 

 

<?php header('Access-Control-Allow-Origin: *'); ?>

Revisions

Revision Differences

February 15, 2016 @ 16:21:37Current Revision
Content
Unchanged: <p>Unchanged: <p>
Unchanged: This topic will show you how to fix No &lsquo;Access- Control-Allow- Origin&rsquo; header is present on the requested resource.Unchanged: This topic will show you how to fix No &lsquo;Access- Control-Allow- Origin&rsquo; header is present on the requested resource.
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: <strong>No &lsquo;Access- Control-Allow- Origin&rsquo; header is present on the requested resource</strong>Unchanged: <strong>No &lsquo;Access- Control-Allow- Origin&rsquo; header is present on the requested resource</strong>
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: This happens if you are attempting cross domain request.That is you are sending request from one domain to another domain. Normal browsers doesn&rsquo;t support cross domain request for security reasons. You can fix this by passing &lsquo;Access- Control-Allow- Origin&rsquo; header .Unchanged: This happens if you are attempting cross domain request.That is you are sending request from one domain to another domain. Normal browsers doesn&rsquo;t support cross domain request for security reasons. You can fix this by passing &lsquo;Access- Control-Allow- Origin&rsquo; header .
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: Open the file to which you are sending the ajax request and place this header in the beginning of file.Unchanged: Open the file to which you are sending the ajax request and place this header in the beginning of file.
Unchanged: </p>Unchanged: </p>
Unchanged: <p>Unchanged: <p>
Unchanged: &nbsp;Unchanged: &nbsp;
Unchanged: </p>Unchanged: </p>
Unchanged: <table>Unchanged: <table>
Unchanged: <tbody>Unchanged: <tbody>
Unchanged: <tr>Unchanged: <tr>
Unchanged: <td data-settings="show">Unchanged: <td data-settings="show">
Unchanged: <p>Unchanged: <p>
Deleted: 1Added: &nbsp;
Unchanged: </p>Unchanged: </p>
Unchanged: </td>Unchanged: </td>
Unchanged: <td>Unchanged: <td>
Unchanged: <p>Unchanged: <p>
Unchanged: &lt;?php header(&#39;Access- Control-Allow-Origin: *&#39;); ?&gt;Unchanged: &lt;?php header(&#39;Access- Control-Allow-Origin: *&#39;); ?&gt;
Unchanged: </p>Unchanged: </p>
Unchanged: </td>Unchanged: </td>
Unchanged: </tr>Unchanged: </tr>
Unchanged: </tbody>Unchanged: </tbody>
Unchanged: </table>Unchanged: </table>

Note: Spaces may be added to comparison text to allow better line wrapping.

No comments yet.

Leave a Reply