Shadow Wizard Money Gang
✅ CORS issue when making GET request to server running asp application.
Hi,
I have this api: https://wsapi.tyrells.net/api/categories
And this webapp: https://wordsearch.tyrells.net/
This is the CORS code in the api:
This is the error in the webapp console:
The server receives the request when fetching from the webapp.
Making a GET request works fine when opening https://wsapi.tyrells.net/api/categories in browser.
Have I done something blatantly incorrect? I have no idea where I've gone wrong.
Thanks
75 replies
✅Shuffling db results using LINQ.
Is there a way to shuffle db results using linq?
I've tried copying some code from online using .orderby(...) but it doesnt seem to work.
I have this code that returns all words from a db, shuffles them all then returns just the first x but it's horribly inefficient.
19 replies
✅ Help understanding how to get foreign relation using Entity Framework core.
Hi,
I want to be able to join two tables to get all words in a category using entity framework core (whatever the latest version is).
I have a sqlite3 database with two tables, words and categories. This is their schema:
categories: name, id.
words: id, text, categoryid (foreign key), length.
In plain sql joining them would be easy, just something like (or with join/innerjoin)
when I try
I get this error.
This is the on model creating
these are the class models
12 replies
✅ Jittery CSS pan animation
Hi I'm having trouble trying to make a background pan animation in CSS. It pans but it's very jittery. Does anyone have an idea as to why?
Code: https://hastebin.com/share/ewodonebim.javascript
Demo (delete the post if not allowed to post personal links): https://www.tyrells.net/
34 replies