JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Jun 22, 2016 23:00
Alright, that was really helpful, thanks everybody, bedtime
Jun 22, 2016 22:59
yeah, great
Jun 22, 2016 22:58
and just make a request to /hello
Jun 22, 2016 22:57
i have to omit this
Jun 22, 2016 22:57
however, since my origin is already localhost:3000
Jun 22, 2016 22:57
In the get request : the url was localhost:3000/hello
Jun 22, 2016 22:57
Ok ,the problem was :
Jun 22, 2016 22:57
hahaha
Jun 22, 2016 22:57
now i got it :9
Jun 22, 2016 22:57
OK
Jun 22, 2016 22:57
AHHHH
Jun 22, 2016 22:56
ok, and I am not ?
Jun 22, 2016 22:54
ups, sorry ;)
Jun 22, 2016 22:53
Location {hash: "", search: "", pathname: "/", port: "3000", hostname: "localhost"…}
ancestorOrigins
:
DOMStringList
assign
:
()
hash
:
""
host
:
"localhost:3000"
hostname
:
"localhost"
href
:
"http://localhost:3000/"
origin
:
"http://localhost:3000"
pathname
:
"/"
port
:
"3000"
protocol
:
"http:"
reload
:
reload()
replace
:
()
search
:
""
toString
:
toString()
valueOf
:
valueOf()
__proto__
:
Location
Jun 22, 2016 22:53
from the js module ?
Jun 22, 2016 22:52
i get the error shown above
Jun 22, 2016 22:52
now, in one of the javascript modules, i make a get request to localhost:3000/hallo
Jun 22, 2016 22:51
app.get('/hallo', function(req, res){
res.end('HALLO!');
});
Jun 22, 2016 22:51
so i have defined the following route : app.get('/hallo', function(req, res){
res.end('HALLO!');
});
Jun 22, 2016 22:51
I still run into this problem
Jun 22, 2016 22:51
jquery.js:5 XMLHttpRequest cannot load localhost:3000/hallo. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
Jun 22, 2016 22:48
or whatsoever
Jun 22, 2016 22:48
and then get data from localhost:3000/route1
Jun 22, 2016 22:48
You mean, I would run the application on localhost:3000/index.html
Jun 22, 2016 22:45
i am running express server
Jun 22, 2016 22:45
no
Jun 22, 2016 22:43
@unuSec
Jun 22, 2016 22:43
jquery.js:5 XMLHttpRequest cannot load localhost:3000. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
Jun 22, 2016 22:40
no, this is not working
Jun 22, 2016 22:40
@unu
Jun 22, 2016 22:30
does anyone know this ?
Jun 22, 2016 22:30
is there any way i can make requests from client to api locally ?
Jun 22, 2016 22:30
also setup with an express server
Jun 22, 2016 22:30
no in parallel i would like to setup an api, running on a different port
Jun 22, 2016 22:30
setup with an express server
Jun 22, 2016 22:29
I have my frontend, runnung on localhost 3000
Jun 22, 2016 22:29
I have a question: I am currently developing a node application
Jun 22, 2016 22:29
Hi everbody
Jun 20, 2016 21:58
will try tomorrow, it GOT time, c ya !
Jun 20, 2016 21:58
Ok thanks for the input
Jun 20, 2016 21:56
which means ? can you give me alink ?
Jun 20, 2016 21:55
is this possible without running into cross origin problems ?
Jun 20, 2016 21:55
now i want to make a request from port 3000 to port 8080
Jun 20, 2016 21:55
in parallel i have setup a restAPI on port 8080
Jun 20, 2016 21:54
it runs on port 3000
Jun 20, 2016 21:54
Hi everybody, I have setup a basic http server via Express for local development
Apr 18, 2016 21:27
thanks anyway guys !
#
Apr 18, 2016 21:27
ok, Its late, I will have to try tomorrow
Apr 18, 2016 21:24
but i cannot just use a different port ?