[ask] Error Wordpress Menggunakan WHMCS Bridge


Status
Not open for further replies.

Xwebindonesia

Poster 1.0
Mohon kesediaan tuan-tuan untuk meluangkan waktunya membantu newbie :17:
link halaman WMHCS : https://www.portal.xweb.co.id
link halaman WMHCS Bridge : https://www.xweb.co.id/portal

Error :
  1. Icon tidak muncul dihalaman WMHCS Bridge --> has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  2. Saat login benar atau salah di https://www.xweb.co.id/portal/?ccce=clientarea muncul error redirect you too many times.
  3. Saat cari / daftar domain baru di https://www.xweb.co.id/portal/cart/?a=add&domain=register malah redirect ke https://www.portal.xweb.co.id/cart.php?a=add&domain=register&systpl=six
    dan error ini berlaku utk semua button add to cart (cart) yang berada di link https://www.xweb.co.id/portal/........ akan redirect ke https://www.portal.xweb.co.id/................
Percobaan :
  1. Error No 1 Berkelana di google nemu code untuk error Access-Control-Allow-Origin utk file .htaccess
    Code:
    <FilesMatch ".(eot|ttf|otf|woff|woff2|svg)">
        Header set Access-Control-Allow-Origin "*"
    </FilesMatch>
    kode di atas masih gagal
  2. Error No 2 sudah coba clear Cache sampe restart modem masih gagal
    sudah tambah manual code wp-config.php
    Code:
    define('WP_HOME','https://www.xweb.co.id');
    define('WP_SITEURL','https://www.xweb.co.id');
  3. Error No 3 belum tau dmn errornya
 
belum pernah coba, nyimak barangkali bsa nyoba jg hehe
 
nyimak juga, belum pernah coba nih.
 
Coba header set taruh di dir.. Kyk gini
Code:
<Directory /var/www/html>
     Header set Access-Control-Allow-Origin "*"

Config lainnya disini
</Directory>
 
mohon maaf tuan bisa lebih spesifik ?
btw ga ada akses root ke server, cuma di share hosting tuan.

mungkin maksudnya di .htaccess
tambahkan kode ini

Code:
<IfModule mod_headers.c>   
    Header set Access-Control-Allow-Origin *
</IfModule>
 
Oke bener seperti itu.. Semoga bisa
 
dan untuk admin terhormat, bisa lock thread ini karena saya sudah tahu dimana errornya :)
tinggal tunggu team dari provider server perbaiki masalah saya ini.
makasih banyak teman2 atas masukannya :36:
 
Status
Not open for further replies.
Back
Top