Posts

For more information, see the search syntax documentation. Search results are sorted by creation date.

Search Results

Site and Policy » Cross-origin Resource Sharing from Derpibooru » Post 1

FieryChocobo

Right, after a few Months I now have some time off so I was kinda thinking about finishing this project, but I still have this issue, so I am bumping this thread. Doing a bit more research it seems that Derpibooru does reply with a CORS Header but maybe not always. If I testhttps://derpicdn.net/” then I get a CORS header, but checking an actual Image I don’t. This might totally be because that’s not how that works in the first place, but the point stands that I still get an Error when trying to request an Image.  
My only other idea for why this would be is that none of the Headers in the “Access-Control-Allow-Headers” part match the ones listed on the Unity Site but I don’t exactly know in depth what I am talking about so I might be making a super rookie Mistake.
 
I construct the URL for the Image using the “image” URl from the JSON Query with “https://” added at the front, so ie:  
https://derpicdn.net/img/view/2012/1/2/0__artist+needed_safe_derpy+hooves_adventure+in+the+comments_bag_building_chair_cigar_derpibooru+legacy_eyes_featured+image_female_grin_gritted+teeth_h.jpg”
 
The error I get in my JavaScript Console is:  
Access to XMLHttpRequest at ‘https://derpicdn.net/img/view/2012/1/2/0__artist+needed_safe_derpy+hooves_adventure+in+the+comments_bag_building_chair_cigar_derpibooru+legacy_eyes_featured+image_female_grin_gritted+teeth_h.jpg’ from origin ‘http://localhost:52975’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
 
Considering I can see “access-control-allow-origin *” on the test I am not sure what’s wrong here.  
I tried uploading it to itch.io and testing there and I get the same error.

Site and Policy » Cross-origin Resource Sharing from Derpibooru » Topic Opener

FieryChocobo

Hi there /)
 
I hope this is the right category for this sort of question, apologies if not.  
I am a Hobby Game Developer and have recently been working on a Clop Game that uses Derpibooru and JSON Queries to retrieve Images fitting the Context. As it is the only Engine I know how to properly use I use Unity.
 
My original plan was to release this game as a WebGL Version so Users can simply play from their Browser, but I encountered an Error when testing my WebGL Build. It appears, that Derpibooru currently doesn’t allow Cross-origin resource sharing which the WWW Component of Unity needs to be enabled, when using the WebGL Version (Source from Unity Documentation). I have looked around on here and the only mention of it I have found is in the Privacy Policy, however it doesn’t really go into anything beyond mentioning that such a policy exists.
 
My question is simply what the exact policy is on CORS and if there are Hosts for which it is enabled (such as itch.io).
 
Thanks /)

Default search

If you do not specify a field to search over, the search engine will search for posts with a body that is similar to the query's word stems. For example, posts containing the words winged humanization, wings, and spread wings would all be found by a search for wing, but sewing would not be.

Allowed fields

Field SelectorTypeDescriptionExample
authorLiteralMatches the author of this post. Anonymous authors will never match this term.author:Joey
bodyFull TextMatches the body of this post. This is the default field.body:test
created_atDate/Time RangeMatches the creation time of this post.created_at:2015
idNumeric RangeMatches the numeric surrogate key for this post.id:1000000
myMetamy:posts matches posts you have posted if you are signed in. my:posts
subjectFull TextMatches the title of the topic.subject:time wasting thread
topic_idLiteralMatches the numeric surrogate key for the topic this post belongs to.topic_id:7000
topic_positionNumeric RangeMatches the offset from the beginning of the topic of this post. Positions begin at 0.topic_position:0
updated_atDate/Time RangeMatches the creation or last edit time of this post.updated_at.gte:2 weeks ago
user_idLiteralMatches posts with the specified user_id. Anonymous users will never match this term.user_id:211190
forumLiteralMatches the short name for the forum this post belongs to.forum:meta