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?
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
4 Answer(s)
-
0
Yes, CorsOrigins is this feature.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
<cite>maliming: </cite> Yes, CorsOrigins is this feature.
Yes! What value should I set in CorsOrigin?
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
:) "CorsOrigins": "http://*.mycompany.com,http://localhost:4200,http://localhost:49152,http://localhost:9222"
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
<cite>maliming: </cite> :) "CorsOrigins": "http://*.mycompany.com,http://localhost:4200,http://localhost:49152,http://localhost:9222"
Hehehe Thanks @maliming :D
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)