localhost cors block when using pro #2196
-
Describe the bugFor a pro website being developed Access to script at 'https://ka-p.webawesome.com/webawesome/components/tab-panel/tab-panel.js' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. To ReproduceSteps to reproduce the behavior:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
@claviska Hey, please can I get some help? The CDN for pro when using WA Pro + FA Pro gives cors errors :( When deploying (domain is added in FA) - https://jwebswing.com Access to script at 'https://ka-p.webawesome.com/webawesome/components/tab/tab.js' from origin 'https://jwebswing.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Are the PRO WA Kits ready for adoption? |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
|
This was caused by having dual-initialization options - when working local forcing the data-webawesome directory to / so we could avoid the localhost CORS and work, and having the web-awesome kit defined which is the proper way. I see (with no changes on our end) that the localhost no longer throws CORS - THANKS FOR THE QUICK RESOLUTION! When removing the local data directory, it now routes properly. |
Beta Was this translation helpful? Give feedback.
This was caused by having dual-initialization options - when working local forcing the data-webawesome directory to / so we could avoid the localhost CORS and work, and having the web-awesome kit defined which is the proper way.
I see (with no changes on our end) that the localhost no longer throws CORS - THANKS FOR THE QUICK RESOLUTION!
When removing the local data directory, it now routes properly.