Replies: 3 comments 1 reply
-
|
It looks like the CDN isn't serving those files. It's setup to allow all requests from localhost, though, so this is strange. Does your dev setup have a proxy that might be doing something with the requests before they go out? Unfortunately, this doesn't give us a lot to go on so I'm just guessing. |
Beta Was this translation helpful? Give feedback.
-
|
Ok, here is a deeper dive into the directory structure - This is an MS MVC project inside a solution. Inside the project in the Views\Shared folder is _Layout.vbhtml which calls the WebAwesome CDN - There are no other CDN or scripts above this line. On every load of the CDN, the page comes back with the CORS errors. The _Layout.vbhtml is loded correctly and the elements on it work correctly, but as I put more components in, I am not getting the responses back that I should - not loading lists and so on. |
Beta Was this translation helpful? Give feedback.
-
|
I am using MC Visual Studio, and when testing, VS uses IIS locally as the web server. As far as I know, there are no proxies set up purposely within VS or my local machine for any reasons. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am receiving numerous errors about loading WebAwesome components, as soon as I go down a level in an _Layout.vbhtml file.
The attachment shows several errors, but this is the first one - which points to the solid issue:
from origin 'https://localhost:44333' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
menu.js:1 Failed to load resource: net::ERR_FAILED
Anyone have workarounds? I could certainly create a whole setup where it works from a local build during localhost testing, but then I'd have to rebuild everyt ime a new version comes out :(
ErrorMessagesInDeveloperTools.txt
Beta Was this translation helpful? Give feedback.
All reactions