Closed
Bug 1183014
Opened 10 years ago
Closed 6 years ago
cross origin attribute
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: victor_axelsson, Unassigned, NeedInfo)
Details
Attachments
(1 file)
|
145.02 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0
Build ID: 20150629114848
Steps to reproduce:
Created an img tag with attribute for cross origin. The Value can be set to anything. Like so:
<img crossorigin="anonymous" src="...">
Actual results:
The image is not displayed.
Expected results:
The image should have been displayed. I haven't seen this behaviour in any other tag but I haven't investigated it any further either.
Comment 1•10 years ago
|
||
Was the src attribute value same-origin with the original page? Per spec, if @crossorigin is set and @src is not same-origin then the image will only be shown if the server responds with the proper CORS headers.
Flags: needinfo?(victor_axelsson)
| Reporter | ||
Comment 2•10 years ago
|
||
Since I am using a PHP proxy I have set the the header:
header("Access-Control-Allow-Origin: *");
This works fine in Chrome and even IE.
Flags: needinfo?(victor_axelsson)
Comment 3•10 years ago
|
||
That should work, as far as I can tell. Do you have a testcase where it's not working that's public?
If not do you at least see any messages in the console about CORS blocking the load?
Flags: needinfo?(victor_axelsson)
Comment 4•6 years ago
|
||
2019-03-06
This bug is part of a group of bugs which have had an open needinfo for at least 12 weeks.
The request for information has not been answered, and we can't move forward on the bug so we are closing it.
If the defect is still present, please reopen this bug with an updated report.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•