Problem with login pop up

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri Feb 12, 2016 6:51 pm
Reply with quote
Report this post
Hi, i have problem with login pop up . When I log in as me not log . you can see it here : http://velkoobchod.svetkamenov.sk/

I see error in console :
Code: Select all
XMLHttpRequest cannot load http://www.velkoobchod.svetkamenov.sk/index.php?option=com_ajax&format=json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://velkoobchod.svetkamenov.sk' is therefore not allowed access.


can you help me ? thanks
User avatar
Fresh Boarder

teitbite
Tue Feb 16, 2016 2:25 pm
Reply with quote
Report this post
Hi

Please try add this code to .htaccess

Code: Select all
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
User avatar
Moderator

GK User
Tue Feb 16, 2016 7:48 pm
Reply with quote
Report this post
Hi, this web is on subdomaine .

domaine is : svetkamenov.sk
and this web is : velkoobchod.svetkamenov.sk
User avatar
Fresh Boarder

GK User
Fri Feb 19, 2016 12:38 pm
Reply with quote
Report this post
Good day . How do I therefore correct when it is on a subdomain?
User avatar
Fresh Boarder

teitbite
Tue Feb 23, 2016 5:45 pm
Reply with quote
Report this post
Hi

This code just adds "www" to every link if it's missing so there are no problems with cross origin. Subdomain has nothing to do here. Please try it and if You'll have problems try also ask Your hosting provider how would he deal with cross origin problem on server.
User avatar
Moderator

GK User
Thu Feb 25, 2016 3:00 pm
Reply with quote
Report this post
Hi, I add it but now a see blank page with : invalid flag

How I can fix it ? thanks
User avatar
Fresh Boarder

teitbite
Mon Feb 29, 2016 11:25 am
Reply with quote
Report this post
Hi

What url is the link changed to in browser ? Too small to see it in Your screenshot.

Anyway please show the error message from Your first post to Your hosting provider. This is server related, so they will probably know better how to deal with it.
User avatar
Moderator


cron