Skip to content

Options 302 redirect #1

@adriansd27

Description

@adriansd27

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;
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions