1

I'm creating project that has frontend in react js and I used userfront.com's api for login and reset password in login page

The problem in console:

Access to XMLHttpRequest at 'https://api.userfront.com/v0/tenants/rbvdmyqb/some-secure-endpoint' from origin 'http://localhost:3001' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Failed to load resource: net::ERR_FAILED**

I verified url const response = await axios.post("``https://api.userfront.com/v0/tenants/rbvdmyqb/auth/reset/link``", payload, options);

1

1 Answer 1

0

Add

Allow CORS: Access-Control-Allow-Origin

extension to your browser.

Enable it in Chrome by clicking here:

enter image description here

Install for Chrome and Firefox.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.