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

动态加载图片存在跨域问题 #115

Open
ycshill opened this issue Sep 21, 2020 · 2 comments
Open

动态加载图片存在跨域问题 #115

ycshill opened this issue Sep 21, 2020 · 2 comments

Comments

@ycshill
Copy link

ycshill commented Sep 21, 2020

No description provided.

@ycshill
Copy link
Author

ycshill commented Sep 21, 2020

psvRef.current = new Viewer({
        panorama: originalUrl,
        container: panoramaRef.current,
        loadingImg: '',
        //旋转速度
        autorotateSpeed: '3rpm',
        size: {
          width: '100%',
          height: '100%',
        },
      });
    }

其中 originalUrl 是通过接口返回的图片,结果控制台报错
image

求解,紧急!!!

@flyingzl
Copy link

You should handle it by yourself.. CORS can by configured by the remote server or Nginx...

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

2 participants