Jump to content
Sign in to follow this  

Multi-Domain Async TAG

Recommended Posts

I want to use the same async tag on multiple domains but get an error:

"No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'xxxxx' is therefore not allowed access."

How could I fix this?

Tried to add this to asyncspc.php but did not help:

header('Access-Control-Allow-Origin: *');

Edited by marti

Share this post

Link to post
Share on other sites

In async.js at the position of 

withCredentials=true set to false

and put this in your httpd.conf:

  1. # Always set these headers.
  2. Header always set Access-Control-Allow-Origin "*"
  3. Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
  4. Header always set Access-Control-Max-Age "1000"
  5. Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...