Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AxiosError #12

Open
somfist opened this issue Jul 30, 2022 · 1 comment
Open

AxiosError #12

somfist opened this issue Jul 30, 2022 · 1 comment

Comments

@somfist
Copy link
Contributor

somfist commented Jul 30, 2022

AxiosError {message: 'Unsupported protocol localhost:', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}}
code: "ERR_BAD_REQUEST"
config: {transitional: {…}, transformRequest: Array(1), transformResponse: Array(1), timeout: 0, adapter: ƒ, …}
message: "Unsupported protocol localhost:"
name: "AxiosError"
[[Prototype]]: Error
image

@somfist
Copy link
Contributor Author

somfist commented Jul 30, 2022

image

Access to XMLHttpRequest at 'localhost:4000/' from origin 'http://localhost:3000' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.

Error: Network Error
at createError (createError.js:16:1)
at XMLHttpRequest.handleError (xhr.js:117:1)

xhr.js:210 POST localhost:4000/ net::ERR_FAILED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant