Call to php script showing extra character in the console

Discuss building things with or for the Mozilla Platform.
Post Reply
rgoodwin
New Member
Posts: 1
Joined: June 20th, 2014, 12:17 pm

Call to php script showing extra character in the console

Post by rgoodwin »

I have a page that is calling a .php script to pull a high score list from a MySQL database. It keeps failing in the console window so no data is pulled from the DB.

The error shown in the Console is: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://URL\highscore.php/?function=read. This can be fixed by moving the resource to the same domain or enabling CORS.

Access-Control-Allow-Origin has been set to * on the server and they are on the same domain anyway. The part I find suspicious is the extra / between .php and ? in the error. It should not be there so the URL is invalid.

I saw a post where it was suggested setting browser.url.autofill to false fixed it, but I still see the extra / in the Console.

Opening the same page in IE gives a similar SOP error, but the URL shown in the console does not have the extra / and the data is still pulled from the database.

I can't figure out why the / is being added or if it is even the problem.
Post Reply