Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2017-11-07, 15:27:40

Author Topic: Kloxo-MR HTTP Origin Bug  (Read 462 times)

0 Members and 1 Guest are viewing this topic.

Offline flameblue59

  • Senior Member
  • *
  • Posts: 172
  • Karma: +0/-0
    • View Profile
Kloxo-MR HTTP Origin Bug
« on: 2017-07-12, 08:22:00 »
Selamat siang, saya mau menanyakan perihal HTTP ORIGIN karena tidak terbaca. Padahal di php sudah diset, saya sudah coba tanya di StackOverFlow, ada kemungkinan karena setting default dari server. Jadi untuk lebih pastinya saya coba tanyakan disini. Berikut ini kode php saya

Code: [Select]
<?php
$httporigin 
$_SERVER['HTTP_ORIGIN'];
if(
$httporigin=="http://nielinfo.com"){
header("Access-Control-Allow-Origin: ".$httporigin);
header('Access-Control-Allow-Methods: POST');
header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept');
header('Access-Control-Allow-Credentials: true');
echo 
$_COOKIE['username'];
}
?>


Quote
XMLHttpRequest cannot load https://igoblogging.com/likebutton/. The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'http://nielinfo.com' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

Response Header

Code: [Select]
Access-Control-Allow-Credentials:true
Access-Control-Allow-Headers:Origin, X-Requested-With, Content-Type, Accept
Access-Control-Allow-Methods:POST
Access-Control-Allow-Origin:*
Cache-Control:max-age=604800
Connection:close
Content-Encoding:gzip
Content-Type:text/html; charset=utf-8
Date:Wed, 12 Jul 2017 06:23:18 GMT
Expires:Wed, 19 Jul 2017 06:23:18 GMT
Server:nginx/1.13.1
Transfer-Encoding:chunked
Vary:Accept-Encoding
X-Content-Type-Options:nosniff
X-Frame-Options:SAMEORIGIN
X-Powered-By:PHP/5.4.45
X-Supported-By:Kloxo-MR 7.0
X-XSS-Protection:1;mode=block

Untuk lebih jelasnya bisa cek langsung di

http://nielinfo.com

Mohon bantuannya, soalnya saya bingung banget udah coba dari kemarin2, macem2 kode udah saya coba implemantasiin tapi hasilnya tetap sama saja. Terbacanya wildcard (*), settingan phpnya tidak terload. Thanks.

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Kloxo-MR HTTP Origin Bug
« Reply #1 on: 2017-07-12, 12:41:40 »
Infokan 'sh /script/sysinfo'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline flameblue59

  • Senior Member
  • *
  • Posts: 172
  • Karma: +0/-0
    • View Profile
Re: Kloxo-MR HTTP Origin Bug
« Reply #2 on: 2017-07-13, 09:58:08 »
ini pak MR hasil sh /script/sysinfo

Code: [Select]
A. Control Panel:
   - Kloxo-MR: 7.0.0.c-2017061602
   - Web: hiawatha-10.6.0-f.1.mr.el6.x86_64
   - PHP: php56s-5.6.30-2.ius.centos6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.9 (Final) x86_64
   - Hostname: server.igoblogging.com
C. Services:
   1. MySQL: MariaDB-server-10.0.31-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php56u-cli-5.6.30-2.ius.centos6.x86_64
        - Multiple:
          * php52m-5.2.17-102.mr.el6
          * php53m-5.3.29-1.ius.centos6
          * php54m-5.4.45-1.ius.centos6
          * php55m-5.5.38-1.ius.centos6
          * php56m-5.6.30-2.ius.centos6
          * php70m-7.0.19-1.ius.centos6
          * php71m-7.1.5-1.ius.centos6
      - Used: php54m-fpm
      - Multiple: disable
   3. Web Used: nginxproxy
     - Hiawatha: hiawatha-10.6.0-f.1.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.45-1.el6.x86_64
     - Nginx: nginx-1.13.1-1.el6.ngx.x86_64
     - Apache: httpd24u-2.4.25-4.ius.centos6.x86_64
       - PHP Type: php-fpm_event
       - Secondary PHP: on
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: bind
     - Bind: bind-9.9.9-1.mr.el6.x86_64
     - DJBDns: djbdns-1.05-17.4.mr.el6.x86_64
     - NSD: nsd-4.1.16-1.el6.x86_64
     - PowerDNS: pdns-4.0.3-1.el6.MIND.x86_64
     - Yadifa: yadifa-2.2.3-1.mr.el6.x86_64
   6. Mail: qmail-toaster-1.03-1.3.56.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
      - smtp: qmail-toaster-1.03-1.3.56.mr.el6.x86_64
      - spam: bogofilter-1.2.4-1.el6.x86_64
   7. FTP: pure-ftpd
      - pure-ftpd: pure-ftpd-1.0.37-1.mr.el6.x86_64
   8. Stats: awstats
      - awstats: kloxomr-stats-awstats-7.6-1.mr.noarch
D. Memory:
             total       used       free     shared    buffers     cached
Mem:          5000        904       4095         50          0        499
-/+ buffers/cache:        404       4595
Swap:         2000          0       1999
E. Disk Space:
Filesystem         Size  Used Avail Use% Mounted on
/dev/ploop37647p1   50G  4.2G   43G   9% /


*** Process Time: 00:00:00:25.25757 (dd:hh:mm:ss:xxxxxx) ***

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Kloxo-MR HTTP Origin Bug
« Reply #3 on: 2017-07-13, 11:49:47 »
Silahkan akses ke 'web features' pada domain terkait. Lihat pada bagian 'General Header'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline flameblue59

  • Senior Member
  • *
  • Posts: 172
  • Karma: +0/-0
    • View Profile
Re: Kloxo-MR HTTP Origin Bug
« Reply #4 on: 2017-07-13, 21:50:10 »
terima kasih banyak, sudah bisa sekarang pak

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.038 seconds with 16 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM