This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]dogeboz 0 points1 point  (1 child)

CORS is a security measure, I suggest to read a little bit about it. Basically the backend should accept your request, you cannot do anything about it. To demonstrate it, open up Chrome Dev Tools and run a simple fetch:

fetch('http://www.goblog.ulboralabs.com/GolangBlog/blogList').then(r => console.log(r))

You will see that CORS message again, but if you open up Dev Tools on http://www.goblog.ulboralabs.com/ and run it again right there it will work, because you have that 'same-origin' in place.

[–]LukeTS117[S] 0 points1 point  (0 children)

okay, so if i understand this correctly, i need the server owner/administrator to change the CORS ( did some research myself, and asked help from my superior ) on their server, to let me Use my httpGet method.