Skip to content

CORS error after upgrading from 1.1.0 to 1.1.1 #1070

@despatates

Description

@despatates

Environment

------------------------------
- Operating System: Linux
- Node Version:     v24.11.1
- Nuxt Version:     4.2.1
- CLI Version:      3.30.0
- Nitro Version:    2.12.8
- Package Manager:  yarn@1.22.22
- Builder:          -
- User Config:      app, auth, components, css, dayjs, compatibilityDate, devtools, fonts, i18n, modules, postcss, routeRules, runtimeConfig, sentry, sourcemap, ssr, telemetry, vuetify
- Runtime Modules:  @nuxt/eslint@1.11.0, @nuxtjs/i18n@10.2.1, dayjs-nuxt@2.1.11, @nuxt/fonts@0.11.4, @pinia/nuxt@0.11.3, @sidebase/nuxt-auth@1.1.0, @sentry/nuxt/module@10.28.0, vuetify-nuxt-module@0.18.8
- Build Modules:    -
------------------------------

Reproduction

Migrate from 1.1.0 to 1.1.1.

Describe the bug

I'm using the local provider. After upgrading from 1.1.0 to 1.1.1, the refresh token requests fail with a CORS error.
The nuxt-auth setup didn't changed, as well as the backend server.

Here is my config:

auth: {
  baseURL: 'http://localhost:8080',
  globalAppMiddleware: true,
  provider: {
    type: 'local',
    endpoints: {
      // ...
    },
    token: {
      signInResponseTokenPointer: '/access_token',
    },
    refresh: {
      isEnabled: true,
      endpoint: { /* ... */ },
      refreshOnlyToken: false,
      token: {
        signInResponseRefreshTokenPointer: '/refresh_token',
        refreshRequestTokenPointer: '/refresh_token',
      },
    },
  },
}

My app is running on localhost:3000. I'm sorry but I don't have much more info to provide.
Is there a parameter I missed?

Additional context

Image

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug that needs to be resolvedpendingAn issue waiting for triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions