Jump to content

Access-Control-Allow-Origin - error


John Whelan

Recommended Posts

I get the following error from the widget: The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed.

 

I have added the following line to .htaccess because without it the widget would not serve at all:

 

Header add Access-Control-Allow-Origin "*"

 

I see the duplicate header code in the widget factory theme and controller and just doing some testing by commenting out the corresponding lines tells me that the problem is with the duplicate in the controller file.

 

I'm fine with commenting it out, but was wondering if anyone else had seen the same problem?

Link to comment
×
×
  • Create New...