*

okaka14

  • *
  • 3 posts
How to Fix No 'Access-Control-Allow-Origin ?
« on: May 19, 2018, 10:41:42 AM »
Can anyone help me how to fix this problem  :-\ :-\

" Failed to load https://example.com/contact?ajaxRequest=1&ajaxItem=1&pattern=examplekeyword: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://example.com' is therefore not allowed access".

your comments and suggestions are highly appreciated. Thanks  :D :D
« Last Edit: May 19, 2018, 10:57:58 AM by okaka14 »

*

MB Themes

Re: How to Fix No 'Access-Control-Allow-Origin ?
« Reply #1 on: May 19, 2018, 11:03:43 AM »
Try to use .htaccess solution, I think it works for me.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by frosticek on May 19, 2018, 03:28:29 PM
*

okaka14

  • *
  • 3 posts
Re: How to Fix No 'Access-Control-Allow-Origin ?
« Reply #2 on: May 19, 2018, 11:16:06 AM »
Try to use .htaccess solution, I think it works for me.
use this code (.htaccess )
<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
</IfModule>

Finally , it's work  ;D ;D :D :D
thank you !! for your suggestion