CQ and Javascript redirection

Avatar

Avatar

Tboness

Avatar

Tboness

Tboness

15-10-2015

Trying to redirect to an EXTERNAL URL via javascript.
CQ blocks any attempts of reading or redirecting to external URL's.

How do I work around this?

Kind regards
Toby

View Entire Topic

Avatar

Avatar

Tboness

Avatar

Tboness

Tboness

15-10-2015

Hi Justin.

Attached your script to my page.
Instead of redirecting to google.com

The page is redirected to the following url:
http://localhost:4502/cf#_

Any jQuery.posts(), throws an error in my browser console:
"Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://www.externalURL.com This can be fixed by moving the resource to the same domain or enabling CORS."

Kind regards
Toby