Question

  • Creator
    Topic
  • #3988919

    NodeJS, SSE & PHP-XAMPP

    by sacred53 ·

    Hello world,

    i have a local XAMPP webserver. I want to update data of webuser by NodeJS SSE. I don’t get my php script to be executed. Before I’ve done it by Ajax-Posts without node. Do I need Curl to bridge PHP & NodeJS? And/Or do I have to use credentials, because of my two sources XAMPP & NodeJS?

    legend: [url] = https://drake-pc:3002/path/to/cellData.php

    My errors:
    Cross-Origin request blocked: The Same Origin Policy disallows reading the remote resource at [url]. reason: CORS-headline Access-Control-Allow-Origin missing. Statuscode: 200.
    Firefox can’t establish a connection to the server at [url].

    code:

    Info: client.js is not executed instantly by index.php, instead by login & POST-method.

    Add: Once I use http, I get the error: Blocked loading mixed active content [url]

    I hope someone can help me out, thanks in advance!

You are posting a reply to: NodeJS, SSE & PHP-XAMPP

The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our Community FAQs for details. All submitted content is subject to our Terms of Use.

All Answers

  • Author
    Replies
    • #3988948

      Re: error

      by kees_b ·

      In reply to NodeJS, SSE & PHP-XAMPP

      Sorry, but your link doesn’t work. “drake-pc” isn’t a valid domain from outside your local network.

    • #3991524

      Reply To: NodeJS, SSE & PHP-XAMPP

      by mobsolutions22 ·

      In reply to NodeJS, SSE & PHP-XAMPP

      There should be origin access between node js and cross-platform, which you use. You have to add that origin access to finish your task correctly.

Viewing 1 reply thread