2020年12月31日星期四

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource in python to angular socket io

socketio can't get the data from python to angular front end it shows the error as "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://my ip:3000/socket.io/?EIO=3&transport=polling&t=NQtJeHE. (Reason: CORS request did not succeed)"

while True:      sio.emit('livedata', {data'})  

Didn't get this into angular from python socketio emits shows the above error

https://stackoverflow.com/questions/65517293/cross-origin-request-blocked-the-same-origin-policy-disallows-reading-the-remot December 31, 2020 at 02:10PM

没有评论:

发表评论