# Change Cors header

**URL:** <https://forum.infinityfree.com/t/change-cors-header/13770>\
**Category:** Hosting Support\
**Created:** [March 22, 2019, 1:00am UTC](https://forum.infinityfree.com/t/change-cors-header/13770 "2019-03-22T01:00:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon54283628](https://forum.infinityfree.com/letter_avatar/anon54283628/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon54283628](https://forum.infinityfree.com/u/anon54283628)\
**Post date:** [March 22, 2019, 1:00am UTC](https://forum.infinityfree.com/t/change-cors-header/13770/1 "2019-03-22T01:00:38Z")

</div>

Is there a way I can change the cors header

```auto
Access-Control-Allow-Origin: *

```

through apache or nginx?

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [March 22, 2019, 4:53pm UTC](https://forum.infinityfree.com/t/change-cors-header/13770/2 "2019-03-22T16:53:40Z")

</div>

You can send your own CORS header through PHP, but I don’t think it will do anything. Because of [this security system](https://infinityfree.net/support/javascript-error-using-api-or-mobile-android-app/) CORS of any kind is not possible in free hosting.

Please consider moving to premium hosting if you need to be able to do cross domain AJAX or embedding.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [April 21, 2019, 4:53pm UTC](https://forum.infinityfree.com/t/change-cors-header/13770/3 "2019-04-21T16:53:42Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
