Page 1 of 1
CORS (Cross origin requests) access control checks error
Posted: Fri Nov 10, 2023 2:36 am
by dragonfly-ie
Hard to find involved files and an adequate solution:-
>Admin >Home >Orders ... >Action >View
Clicking
View button gives me an
error undefined pop-up.
Code: Select all
[Error] Cross origin requests are only supported for HTTP.
Code: Select all
[Error] XMLHttpRequest cannot load httpss://xxx.com/index.php?route=api/order/history&token=&order_id=1234 due to access control checks.

Re: access control checks error in admin after restore from backup
Posted: Fri Nov 10, 2023 5:11 am
by IP_CAM
httpss://xxx.com/
does not work, should be:
https://xxx.com/
Re: access control checks error in admin after restore from backup
Posted: Fri Nov 10, 2023 4:33 pm
by dragonfly-ie
Not sure why the error console in the browser shows httpss. The url in status bar is correct when I hover over View.
Strangely enough the Edit and Delete buttons next to View work just fine?
Also the View (orders) doesn’t work ONLY for orders received after restore
Re: access control checks error in admin after restore from backup
Posted: Fri Nov 10, 2023 8:30 pm
by paulfeakins
dragonfly-ie wrote: ↑Fri Nov 10, 2023 4:33 pm
Not sure why the error console in the browser shows httpss.
That must be in your code somewhere.
Re: access control checks error in admin after restore from backup
Posted: Fri Nov 10, 2023 9:21 pm
by JNeuhoff
Or it could be in your web theme. Also, just to be sure, double check your config.php and admin/config.php files.
Re: access control checks error in admin after restore from backup
Posted: Sat Nov 11, 2023 2:24 am
by dragonfly-ie
Thanking you et al.
Using default theme.
Triple checked config files.
An indexed file/ content search for
httpss returns no results.
Still baffles me why I can view orders placed before restore, but not after?
Have to do some more reading on CORS.
https://enable-cors.org
...
Re: access control checks error in admin after restore from backup
Posted: Mon Nov 13, 2023 8:50 pm
by paulfeakins
dragonfly-ie wrote: ↑Sat Nov 11, 2023 2:24 am
Triple checked config files.
Which ones?
Maybe post their content without passwords of course.
Re: CORS (Cross origin requests) access control checks error
Posted: Mon Nov 13, 2023 9:07 pm
by ADD Creative
Check the store_url column in the oc_order table in your database. You could have the wrong URL stored for some orders.
When an order is placed the URL is stored in the database for that order. That is why some orders work and other don't.