Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
holi-okuna
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
app
holi-okuna
Commits
5f35679c
Unverified
Commit
5f35679c
authored
4 years ago
by
Joel Hernández
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #740 from OkunaOrg/bugfix/cors-options-error
fix cors issue with options
parents
24bb49d7
7001a576
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.ebextensions/cors.config
+7
-4
7 additions, 4 deletions
.ebextensions/cors.config
with
7 additions
and
4 deletions
.ebextensions/cors.config
+
7
−
4
View file @
5f35679c
...
...
@@ -5,8 +5,11 @@ files:
group
:
root
content
: |
<
Location
"/"
>
Header
set
Access
-
Control
-
Allow
-
Origin
:
https
://
www
.
okuna
.
io
Header
set
Access
-
Control
-
Allow
-
Methods
:
"POST, GET, PUT, DELETE, OPTIONS, PATCH"
Header
add
Access
-
Control
-
Allow
-
Headers
:
"Authorization, Content-Type, Accept"
Header
set
Access
-
Control
-
Allow
-
Credentials
:
true
Header
always
set
Access
-
Control
-
Allow
-
Origin
:
https
://
www
.
okuna
.
io
Header
always
set
Access
-
Control
-
Allow
-
Methods
:
"POST, GET, PUT, DELETE, OPTIONS, PATCH"
Header
always
add
Access
-
Control
-
Allow
-
Headers
:
"*"
Header
always
set
Access
-
Control
-
Allow
-
Credentials
:
true
RewriteEngine
On
RewriteCond
%{
REQUEST_METHOD
}
OPTIONS
RewriteRule
^(.*)$ $
1
[
R
=
200
,
L
]
</
Location
>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment