Skip to content

CSSStyleSheet.cssRules getter: Not allowed to access cross-origin stylesheet #35

@g-vellis-se

Description

@g-vellis-se

Bug description

I have installed antd-phone-input in a clean vite project (vite v.4.3.2) using ant design v.5.5.2 (i.e. the latest version), but I keep getting an error when accessing the page with the phone-input-component via Firefox (v. 114.0 64-bit, i.e. the latest).

Notably, it works fine in all other browsers I have tested it (Chrome and Safari).

To use the component, I used the following code (as suggested in the documention):

import FormItem from "antd/es/form/FormItem";
import PhoneInput from "antd-phone-input";

image

The image below, shows the error I keep getting:
image

Any ideas?
Thanks

Reproduction steps

  1. Create a vite project (npm create vite using React and TypeScript)
  2. Install ther latest version of ant design (npm i antd)
  3. Go into any .tsx file (e.g. App.tsx) and
    3.1 Introduce the following three import statements: import FormItem from "antd/es/form/FormItem"; import PhoneInput from "antd-phone-input"; import {Form} from "antd";
    3.2 Try to use the PhoneInput component, i.e.
image
  1. Navigate to the page which the PhoneInput component was added in, using Firefox.

Screenshots

image

Browsers

Firefox

OS

Mac

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions