0
ajayak created
Hi,
I am planning to create an ionic capacitor app on top of AspNetZero Angular frontend. For the app to work, I need to enable CORS.
The capacitor wraps the app in a webview and runs the app localhost:9222. Should I just add this URL to the CORS list in appsettings.json? Is this a good approach?
4 Answer(s)
-
0
Yes, CorsOrigins is this feature.
-
0
<cite>maliming: </cite> Yes, CorsOrigins is this feature.
Yes! What value should I set in CorsOrigin?
-
0
:) "CorsOrigins": "http://*.mycompany.com,http://localhost:4200,http://localhost:49152,http://localhost:9222"
-
0
<cite>maliming: </cite> :) "CorsOrigins": "http://*.mycompany.com,http://localhost:4200,http://localhost:49152,http://localhost:9222"
Hehehe Thanks @maliming :D