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

Options 302 redirect #1

Open
adriansd27 opened this issue Sep 16, 2019 · 0 comments
Open

Options 302 redirect #1

adriansd27 opened this issue Sep 16, 2019 · 0 comments

Comments

@adriansd27
Copy link

adriansd27 commented Sep 16, 2019

Hi,

I'm trying to use your tutorial. I've set up everything on Azure. However, when I'm making a request to the page, instead of status code 200 OK, I'm getting a status code 302 Redirect, and the following error:

Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.

image

// Add a request interceptor
axios.interceptors.request.use(function(config) {
  const token = `Bearer ${getToken()}`;
  config.headers.Authorization = token;
  console.log(config);
  return config;
});
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