rolinger commented on issue #1297:
URL: https://github.com/apache/cordova-ios/issues/1297#issuecomment-1473819196

   @breautek - as always, you provide very thorough explanations and quite 
often a working solution.  As is the case with your response above.
   
   Sent headers for: `<img ng-src="https://example.com/pics/someImage.png";>`
   ```
   GET /files/C1001/images/map_C1001_R1001_S1001.png HTTP/1.1
   User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 16_2 like Mac OS X) 
AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148
   Accept: 
image/webp,image/avif,video/*;q=0.8,image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5
   Accept-Language: en-US,en;q=0.9
   Connection: keep-alive
   Accept-Encoding: gzip, deflate, br
   Host: portal.example.com
   ```
   
   Sent headers for: `<img crossorigin="anonymous" 
ng-src="https://example.com/pics/someImage.png";>`
   
   ```
   GET /files/C1001/images/map_C1001_R1001_S1109.png HTTP/1.1
   Accept: 
image/webp,image/avif,video/*;q=0.8,image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5
   Origin: ionic://myapp
   Host: portal.example.com
   User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 16_2 like Mac OS X) 
AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148
   Accept-Language: en-US,en;q=0.9
   Accept-Encoding: gzip, deflate, br
   Connection: keep-alive
   ```
   
   The `Origin` is added natively now.  This is a far more preferred method 
than my alternative solutions.  I never knew crossorigin could be applied 
specifically to certain HTML tags like `IMG` and `SCRIPT`.  What other tags can 
`crossorigin` be applied to - I was looking for some list but couldn't find any.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to