# CORS Error

**URL:** <https://forum.infinityfree.com/t/cors-error/85637>\
**Category:** Hosting Support\
**Created:** [November 2, 2023, 10:49pm UTC](https://forum.infinityfree.com/t/cors-error/85637 "2023-11-02T22:49:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AhmedRtx](https://forum.infinityfree.com/letter_avatar/ahmedrtx/32/5_5575768a8748004e209b776fc1b2916d.png) [@AhmedRtx](https://forum.infinityfree.com/u/AhmedRtx)\
**Post date:** [November 2, 2023, 10:49pm UTC](https://forum.infinityfree.com/t/cors-error/85637/1 "2023-11-02T22:49:55Z")

</div>

When I Send Request From softt-blanket.rf.gd To io-store.rf.gd/io-code.php Using Ajax method GET Display me this error  
Access to XMLHttpRequest at ‘[https://io-store.rf.gd/io-code.php](https://io-store.rf.gd/io-code.php)’ from origin ‘[https://softt-blanket.rf.gd](https://softt-blanket.rf.gd)’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.  
io-store.rf.gd/io-code.php code

\<?php header("Access-Control-Allow-Origin: \*"); header("Content-Type: text/plain"); echo "Txt file"; ?\>

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [November 2, 2023, 11:31pm UTC](https://forum.infinityfree.com/t/cors-error/85637/2 "2023-11-02T23:31:43Z")

</div>

This:

> [@Ensuring only web browsers can access your website](https://forum.infinityfree.com/t/ensuring-only-web-browsers-can-access-your-website/49353/1):
>
> ## Which features are not supported?
> 
> Because of this security system, the following things will not work correctly or at all on websites on free hosting.
> 
> - AJAX requests from other websites (CORS). AJAX requests are only possible on the same (sub)domain.

---

<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:** [November 9, 2023, 11:32pm UTC](https://forum.infinityfree.com/t/cors-error/85637/3 "2023-11-09T23:32:01Z")

</div>

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