How to solve cors issue

i am getting the below error how to resolve this

Access to XMLHttpRequest at ‘http://localhost/rmfdevmobile/public/api/getpodcasts’ from origin ‘http://localhost:8100’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: It does not have HTTP ok status.

often, your server (localhost) needs to be configured to allow cors.

For example, I use the serve package from npm.
And have a folder with static ressources.

serve . # does not work, cors policy fails
serve --cors . #yay

So, I would say it’s serverside and probably a simple config option.

how are you hosting rmfdevmobile, what server is that?

thanks for your info

i resolved in server side.