Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8327513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:08:11+00:00 2026-06-09T01:08:11+00:00

I have Apache set up through xampp to test a webpage to load some

  • 0

I have Apache set up through xampp to test a webpage to load some .php file to read a .csv file as data source to output a bar graph chart. And I encounter this error on Chrome.

Unsafe JavaScript attempt to access frame with URL file:///C:/xampp/htdocs/search/php/loader/csvFileUploader.php from frame with URL file:///C:/xampp/htdocs/search/stackedBarChart.html. Domains, protocols and ports must match.
upclick-min.js:99
i.onload_callback.i.onload_callback upclick-min.js:99
onload

I don’t think this is an iframe problem like many other posts have suggested. I tested this also through firefox, it went beyond reading the php but doesn’t load the .csv file from local directory.

Any suggestions?

<script>
        var uploaderCSV = document.getElementById('uploaderCSV');
            upclick({
                element : uploaderCSV,
                action : 'php/loader/csvFileUploader.php',
                onstart : function(filename) {
                    console.log(" -- Start upload: <" + filename + "> Here");

                },
                oncomplete : function(response_data) {
                    alert(response_data);
                    console.log("  -- CSV file to load: ", response_data);
                    var n = response_data.split("|");

                    if (n.length > 1) {
                        console.log("  >> csv file loaded at[ ", n[1], " ]");
                        loadDayLightFactor("php/loadCSV.php", "../" + n[1]);
                    }
                }
        });


</script>

and here’s the php file

<?php
// using upload at click from http://code.google.com/p/upload-at-click/
// FileData is the name for the input file

$file_result = "";
$file = $_FILES['Filedata'];

$allowedExtensions = array("csv", "txt");
$extension = end(explode(".", $file["name"]));

echo "123".$file;

?>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T01:08:13+00:00Added an answer on June 9, 2026 at 1:08 am

    Your problem seems to be the URL you are trying to reach:

    file:///C:/xampp/htdocs/search

    This is not the way to develop on local environment.
    try to access it through

    http://localhost/search

    I’m sure it will work better. detailed explanation below..


    This is happening because of a security standard called Cross-Domain-Policy

    You can not make a call (via JavaScript) to files with a URL that is different from your current URL Address.

    For example:
    My website’s URL is foobar.com, I’m trying to send an AJAX request to barbaz.com.

    I can’t!

    because it’s not my domain. I can try sending requests to barbaz.foobar.com (using some JavaScript code).

    Another scenario that will show you why this is a “must have” security standard:

    Lets say that I’m logged into my bank’s website using a cookie. the cookie is persistent.

    I’m entering a random website X that send AJAX request to all known bank websites. If I’m still logged into my bank’s website, X website can “talk” to the bank’s website using my user, and do things that I’m not aware of.

    This is a small example why this is very important.

    I hope this was helpful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a plone zinstance set up through Apache Proxy on OS X Server
I have installed apache-tomcat-6.0.35-windows-x86 in my system. How can I configure it and set
I have set up the Apache tomcat 5 to support ssl. Created self signed
I have successfully set up an HgWebDir instance over CGI with Apache, and I
We have Tomcat application server set up at port 8080 and Apache Http Server
I have Apache installed with the XAMPP package, and I'm working locally. I have
I have Apache Tomcat Version 7.0.26 running. A have a JAX-RS servlet under /test,
I have the following Apache directives to process every *.xml file on the web
I have the following simple script to test the mkdir() function in PHP: <?php
I have a php script that needs to run for quite some time. What

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.