Skip to content

missing http header referer when i use import('component.vue') in vue-router #10754

Closed

Description

@alasq

vite 3.1.8
vue 3.2.3

打包后的动态引入的js模块,http header referer字段丢失,但是css模块不会,由于服务器做了csrf防护,导致无法请求子模块。请问如何配置vite才能防止请求头丢失!

Activity

  1. locked and limited conversation to collaborators on Nov 2, 2022
  2. converted this issue into a discussion #10756 on Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions