all of my browsers are not sending the origin header

后端 未结 2 1601
日久生厌
日久生厌 2020-12-06 00:14

I am trying to load an image into a canvas element and later pull the data out in toDataURL().

I have my site running with Ruby on Rails 2.3

I have my images

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-06 00:55

    I was getting this CORS error, and in the server end the origin header was not being sent.

    The problem for me was that I had set crossOrigin = Anonymous in my image tag. Removing that solved the problem for me, and the CORS error was gone.

提交回复
热议问题