• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Gokul Deepak

Gokul Deepak

GoCool and Debug

  • Home
  • WordPress
  • Android
  • How to
  • About Me

DevOps

CORS error in Apache Tomcat – Solved

June 23, 2021 by Gokul Deepak S Leave a Comment

Apache Tomcat

Error: Access to XMLHttpRequest at ‘http://10.12.13.39:8080/content/fetchAllcontent/1/Books/Philosophy’ from origin ‘http://localhost’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Solution: Add the below code in /opt/tomcat/conf/web.xml you can replace * in cors.allowed.origins with the domain you want eg: gokuldeepak.com

Filed Under: DevOps Tagged With: Tomcat

Primary Sidebar

Popular Pages

  • How to find the date of the Facebook group it was created
  • Home
  • CORS error in Apache Tomcat - Solved
  • Combine two separate files line by line in Notepad++
  • How to transfer files from one drive account to another drive account
  • How to add ads.txt for Adsense - Simply Explained
  • How to add ads.txt on Bluehost
  • Elementor Plugin and Nginx Configuration
  • Can't connect to Ubuntu with SSH
  • Output for timedatectl list-timezones

Archives

Categories

  • Android
  • Apache
  • Blogger
  • Computer Tips
  • DevOps
  • Earn
  • Facebook Tips
  • Git
  • Google Tips
  • How to
  • Laptop Tips
  • Laptops
  • Linux
  • Mobile
  • MongoDB
  • Nginx
  • Notepad++
  • PostgresQL
  • Ubuntu
  • Wordpress
  • Xenforo

Tags

Android Android One Bluehost Comparisions Custom ROM Elementor Facebook Genesis Genesis Sample Theme Google Drive How to Lineage OS OnePlus One OwnCloud Rooting Smartphones Stock ROM Studiopress Tomcat Wordpress plugin

Copyright © 2022 ยท Maintained by GokulDeepak